Skip to content

Commit cbfa3a0

Browse files
committed
try with single marker
1 parent e10ea66 commit cbfa3a0

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

test/asynchronous/test_auth.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444

4545
_IS_SYNC = False
4646

47+
pytestmark = pytest.mark.auth
48+
4749
# YOU MUST RUN KINIT BEFORE RUNNING GSSAPI TESTS ON UNIX.
4850
GSSAPI_HOST = os.environ.get("GSSAPI_HOST")
4951
GSSAPI_PORT = int(os.environ.get("GSSAPI_PORT", "27017"))
@@ -82,7 +84,6 @@ def run(self):
8284

8385

8486
class TestGSSAPI(AsyncPyMongoTestCase):
85-
pytestmark = pytest.mark.auth
8687
mech_properties: str
8788
service_realm_required: bool
8889

@@ -269,8 +270,6 @@ async def test_gssapi_threaded(self):
269270

270271

271272
class TestSASLPlain(AsyncPyMongoTestCase):
272-
pytestmark = pytest.mark.auth
273-
274273
@classmethod
275274
def setUpClass(cls):
276275
if not SASL_HOST or not SASL_USER or not SASL_PASS:
@@ -344,8 +343,6 @@ def auth_string(user, password):
344343

345344

346345
class TestSCRAMSHA1(AsyncIntegrationTest):
347-
pytestmark = pytest.mark.auth
348-
349346
@async_client_context.require_auth
350347
async def asyncSetUp(self):
351348
await super().asyncSetUp()
@@ -380,8 +377,6 @@ async def test_scram_sha1(self):
380377

381378
# https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst#scram-sha-256-and-mechanism-negotiation
382379
class TestSCRAM(AsyncIntegrationTest):
383-
pytestmark = pytest.mark.auth
384-
385380
@async_client_context.require_auth
386381
@async_client_context.require_version_min(3, 7, 2)
387382
async def asyncSetUp(self):
@@ -621,8 +616,6 @@ async def test_scram_threaded(self):
621616

622617

623618
class TestAuthURIOptions(AsyncIntegrationTest):
624-
pytestmark = pytest.mark.auth
625-
626619
@async_client_context.require_auth
627620
async def asyncSetUp(self):
628621
await super().asyncSetUp()

test/test_auth.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444

4545
_IS_SYNC = True
4646

47+
pytestmark = pytest.mark.auth
48+
4749
# YOU MUST RUN KINIT BEFORE RUNNING GSSAPI TESTS ON UNIX.
4850
GSSAPI_HOST = os.environ.get("GSSAPI_HOST")
4951
GSSAPI_PORT = int(os.environ.get("GSSAPI_PORT", "27017"))
@@ -82,7 +84,6 @@ def run(self):
8284

8385

8486
class TestGSSAPI(PyMongoTestCase):
85-
pytestmark = pytest.mark.auth
8687
mech_properties: str
8788
service_realm_required: bool
8889

@@ -269,8 +270,6 @@ def test_gssapi_threaded(self):
269270

270271

271272
class TestSASLPlain(PyMongoTestCase):
272-
pytestmark = pytest.mark.auth
273-
274273
@classmethod
275274
def setUpClass(cls):
276275
if not SASL_HOST or not SASL_USER or not SASL_PASS:
@@ -344,8 +343,6 @@ def auth_string(user, password):
344343

345344

346345
class TestSCRAMSHA1(IntegrationTest):
347-
pytestmark = pytest.mark.auth
348-
349346
@client_context.require_auth
350347
def setUp(self):
351348
super().setUp()
@@ -378,8 +375,6 @@ def test_scram_sha1(self):
378375

379376
# https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst#scram-sha-256-and-mechanism-negotiation
380377
class TestSCRAM(IntegrationTest):
381-
pytestmark = pytest.mark.auth
382-
383378
@client_context.require_auth
384379
@client_context.require_version_min(3, 7, 2)
385380
def setUp(self):
@@ -617,8 +612,6 @@ def test_scram_threaded(self):
617612

618613

619614
class TestAuthURIOptions(IntegrationTest):
620-
pytestmark = pytest.mark.auth
621-
622615
@client_context.require_auth
623616
def setUp(self):
624617
super().setUp()

0 commit comments

Comments
 (0)