2021-03-17 23:05:05 -07:00

25 lines
505 B
Python

import logging
import os
import sys
import time
import pytest
# See https://stackoverflow.com/a/33515264.
sys.path.append(os.path.join(os.path.dirname(__file__), "test_helpers"))
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