mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-24 01:50:06 +00:00
25 lines
505 B
Python
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
|