mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 16:48:31 -04:00
Run API on Paas
This commit is contained in:
@@ -75,9 +75,16 @@ def notify_db_session(notify_db):
|
||||
notify_db.session.commit()
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def os_environ(mocker):
|
||||
mocker.patch('os.environ', {})
|
||||
@pytest.fixture
|
||||
def os_environ():
|
||||
"""
|
||||
clear os.environ, and restore it after the test runs
|
||||
"""
|
||||
# for use whenever you expect code to edit environment variables
|
||||
old_env = os.environ.copy()
|
||||
os.environ = {}
|
||||
yield
|
||||
os.environ = old_env
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
|
||||
Reference in New Issue
Block a user