Skip to content

Commit e1651c7

Browse files
committed
Changed fixture to be session instead of class scope
1 parent 97827c1 commit e1651c7

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def webapp_configurations():
7171
limiter.enabled = False
7272

7373

74-
@pytest.fixture(autouse=True, scope='class')
74+
@pytest.fixture(autouse=True, scope='session')
7575
def disable_mail_sending():
7676
webapp.config['TESTING'] = True
7777
webmail = Mail(webapp)

tests/test_registration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from tests import conftest
1212

1313

14-
@pytest.mark.usefixtures('disable_mail_sending')
1514
class TestRegistration:
1615
@staticmethod
1716
def test_invalid_username(

tests/test_users.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from tests import conftest
1111

1212

13-
@pytest.mark.usefixtures('disable_mail_sending')
1413
class TestUser:
1514
def test_password_hashed_on_create(
1615
self,

0 commit comments

Comments
 (0)