mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-15 15:28:50 -04:00
skip e2e
This commit is contained in:
@@ -55,7 +55,10 @@ class NotifyAdminAPIClient(BaseAPIClient):
|
||||
abort(403)
|
||||
|
||||
def check_inactive_user(self):
|
||||
if not current_user or not current_user.is_active:
|
||||
if os.getenv("NOTIFY_E2E_TEST_EMAIL"):
|
||||
# allow end-to-end tests to skip check
|
||||
pass
|
||||
elif not current_user or not current_user.is_active:
|
||||
abort(403)
|
||||
|
||||
def post(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user