Coverage for tests / test_removal_deadline.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v7.14.0, created at 2026-05-13 16:38 +0000

1"""Time-bomb reminder to remove vivarium-compat once migrations are complete. 

2 

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""" 

8 

9import datetime 

10 

11import pytest 

12 

13_REMOVAL_DEADLINE = datetime.date(2026, 11, 1) 

14 

15 

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 )