Coverage for tests / test_removal_deadline.py: 83%
6 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-05-07 22:11 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-05-07 22:11 +0000
1"""Time-bomb reminder to remove vivarium-compat once migrations are complete.
3Fires after the deadline below. If you hit this:
4 - If all downstream packages have migrated to the new import paths,
5 delete libs/compat/ (see README for the full removal checklist).
6 - If migrations are still in progress, bump the deadline and note why.
7"""
9import datetime
11import pytest
13_REMOVAL_DEADLINE = datetime.date(2026, 11, 1)
16def test_remove_by_deadline():
17 if datetime.date.today() >= _REMOVAL_DEADLINE:
18 pytest.fail(
19 f"vivarium-compat hit its removal deadline ({_REMOVAL_DEADLINE}). "
20 "If migrations are complete, delete libs/compat/ (see README). "
21 "If not, bump _REMOVAL_DEADLINE in this file and document why."
22 )