Skip to content

Commit 779816c

Browse files
committed
throttle login test for production
1 parent a9711f5 commit 779816c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_login.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def login_page(driver):
3737

3838
@markers.smoke_test
3939
@markers.core_functionality
40+
@pytest.mark.usefixtures('throttle_on_prod')
4041
class TestLoginPage:
4142
def test_institutional_login(self, driver, login_page):
4243
"""Check that you arrive on the institutional login page and the institution dropdown is populated.
@@ -207,6 +208,7 @@ def test_cancel_tos_link(self, driver):
207208

208209

209210
@markers.core_functionality
211+
@pytest.mark.usefixtures('throttle_on_prod')
210212
class TestGenericPages:
211213
"""Generic pages have no service in the login/logout url. Typically users should not be able to access
212214
these pages through the standard authentication workflow. The tests in this class manually manipulate the
@@ -236,6 +238,7 @@ def test_generic_logged_out_page(self, driver):
236238

237239

238240
@markers.core_functionality
241+
@pytest.mark.usefixtures('throttle_on_prod')
239242
class TestLoginErrors:
240243
"""Test the inline error messages on the CAS login page when user enters invalid login data"""
241244

@@ -268,6 +271,7 @@ def test_invalid_password(self, driver, login_page):
268271

269272

270273
@markers.core_functionality
274+
@pytest.mark.usefixtures('throttle_on_prod')
271275
class TestCustomExceptionPages:
272276
"""CAS has several customized exception pages which share the same style and appearance as the CAS login pages.
273277
Not all of them can be easily tested. Those that can will require the manipulation of urls to reach the pages.
@@ -344,6 +348,7 @@ def try_login_page(driver, page_class):
344348

345349
@markers.smoke_test
346350
@markers.core_functionality
351+
@pytest.mark.usefixtures('throttle_on_prod')
347352
class TestInstitutionLoginPage:
348353
@pytest.fixture
349354
def institution_login_page(self, driver):

0 commit comments

Comments
 (0)