conftest.py
raw| 1 | """Pytest Shared Fixtures. |
| 2 | |
| 3 | For more details see: https://docs.pytest.org/en/stable/fixture.html |
| 4 | """ |
| 5 | |
| 6 | from unittest.mock import patch |
| 7 | |
| 8 | import pytest |
| 9 | |
| 10 | |
| 11 | @pytest.fixture(scope="module", autouse=True) |
| 12 | def _mock_settings_env_vars(): |
| 13 | with patch.dict("os.environ", {"CENSYS_ASM_API_KEY": "testing"}): |
| 14 | yield |