|
21 | 21 | from landoapi.app import construct_app, load_config, SUBSYSTEMS |
22 | 22 | from landoapi.cache import cache, cache_subsystem |
23 | 23 | from landoapi.mocks.auth import MockAuth0, TEST_JWKS |
24 | | -from landoapi.models.revisions import DiffWarning, Revision |
| 24 | +from landoapi.models.revisions import Revision |
25 | 25 | from landoapi.phabricator import PhabricatorClient |
26 | 26 | from landoapi.projects import ( |
27 | 27 | CHECKIN_PROJ_SLUG, |
|
32 | 32 | from landoapi.repos import Repo, SCM_LEVEL_3 |
33 | 33 | from landoapi.storage import db as _db, db_subsystem |
34 | 34 | from landoapi.tasks import celery |
35 | | -from landoapi.transplants import tokens_are_equal |
| 35 | +from landoapi.transplants import tokens_are_equal, CODE_FREEZE_OFFSET |
36 | 36 |
|
37 | 37 | from tests.factories import TransResponseFactory |
38 | 38 | from tests.mocks import PhabricatorDouble, TreeStatusDouble |
@@ -431,7 +431,7 @@ def register_codefreeze_uri(request_mocker): |
431 | 431 |
|
432 | 432 | @pytest.fixture |
433 | 433 | def codefreeze_datetime(request_mocker): |
434 | | - utc_offset = DiffWarning.code_freeze_offset |
| 434 | + utc_offset = CODE_FREEZE_OFFSET |
435 | 435 | dates = { |
436 | 436 | "today": datetime(2000, 1, 5, 0, 0, 0, tzinfo=timezone.utc), |
437 | 437 | f"two_days_ago {utc_offset}": datetime(2000, 1, 3, 0, 0, 0), |
|
0 commit comments