Skip to content

Commit 34698ff

Browse files
authored
chore: Remove unused pytest marks (open-telemetry#884)
1 parent d0e125a commit 34698ff

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ext/opentelemetry-ext-docker-tests/tests/asyncpg/test_asyncpg_functional.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33

44
import asyncpg
5-
import pytest
65

76
from opentelemetry.ext.asyncpg import AsyncPGInstrumentor
87
from opentelemetry.test.test_base import TestBase
@@ -42,7 +41,6 @@ def setUpClass(cls):
4241
def tearDownClass(cls):
4342
AsyncPGInstrumentor().uninstrument()
4443

45-
@pytest.mark.asyncpg
4644
def test_instrumented_execute_method_without_arguments(self, *_, **__):
4745
_await(self._connection.execute("SELECT 42;"))
4846
spans = self.memory_exporter.get_finished_spans()
@@ -60,7 +58,6 @@ def test_instrumented_execute_method_without_arguments(self, *_, **__):
6058
},
6159
)
6260

63-
@pytest.mark.asyncpg
6461
def test_instrumented_execute_method_with_arguments(self, *_, **__):
6562
_await(self._connection.execute("SELECT $1;", "1"))
6663
spans = self.memory_exporter.get_finished_spans()
@@ -79,7 +76,6 @@ def test_instrumented_execute_method_with_arguments(self, *_, **__):
7976
},
8077
)
8178

82-
@pytest.mark.asyncpg
8379
def test_instrumented_fetch_method_without_arguments(self, *_, **__):
8480
_await(self._connection.fetch("SELECT 42;"))
8581
spans = self.memory_exporter.get_finished_spans()
@@ -94,7 +90,6 @@ def test_instrumented_fetch_method_without_arguments(self, *_, **__):
9490
},
9591
)
9692

97-
@pytest.mark.asyncpg
9893
def test_instrumented_fetch_method_with_arguments(self, *_, **__):
9994
_await(self._connection.fetch("SELECT $1;", "1"))
10095
spans = self.memory_exporter.get_finished_spans()
@@ -110,7 +105,6 @@ def test_instrumented_fetch_method_with_arguments(self, *_, **__):
110105
},
111106
)
112107

113-
@pytest.mark.asyncpg
114108
def test_instrumented_executemany_method_with_arguments(self, *_, **__):
115109
_await(self._connection.executemany("SELECT $1;", [["1"], ["2"]]))
116110
spans = self.memory_exporter.get_finished_spans()
@@ -126,7 +120,6 @@ def test_instrumented_executemany_method_with_arguments(self, *_, **__):
126120
spans[0].attributes,
127121
)
128122

129-
@pytest.mark.asyncpg
130123
def test_instrumented_execute_interface_error_method(self, *_, **__):
131124
with self.assertRaises(asyncpg.InterfaceError):
132125
_await(self._connection.execute("SELECT 42;", 1, 2, 3))
@@ -143,7 +136,6 @@ def test_instrumented_execute_interface_error_method(self, *_, **__):
143136
},
144137
)
145138

146-
@pytest.mark.asyncpg
147139
def test_instrumented_transaction_method(self, *_, **__):
148140
async def _transaction_execute():
149141
async with self._connection.transaction():
@@ -190,7 +182,6 @@ async def _transaction_execute():
190182
StatusCanonicalCode.OK, spans[2].status.canonical_code
191183
)
192184

193-
@pytest.mark.asyncpg
194185
def test_instrumented_failed_transaction_method(self, *_, **__):
195186
async def _transaction_execute():
196187
async with self._connection.transaction():

0 commit comments

Comments
 (0)