25 lines
505 B
Python
Raw Normal View History

import logging
2021-02-11 12:53:44 -08:00
import os
2021-02-11 23:14:20 -08:00
import sys
import time
import pytest
2021-02-11 12:53:44 -08:00
# See https://stackoverflow.com/a/33515264.
sys.path.append(os.path.join(os.path.dirname(__file__), "test_helpers"))
2021-02-11 16:00:29 -08:00
pytest_plugins = ["tests.integration.fixtures.sql_fixtures"]
# Enable debug logging.
logging.getLogger().setLevel(logging.DEBUG)
os.putenv("DATAHUB_DEBUG", "1")
@pytest.fixture
def mock_time(monkeypatch):
def fake_time():
return 1615443388.0975091
monkeypatch.setattr(time, "time", fake_time)
yield