Skip to content

Commit b4d948e

Browse files
devGregAclaude
andcommitted
test(announcement): version the dismiss view test fixture for V3_FEATURE_LOCATIONS
TestDismissOsMessageView loaded dojo_testdata.json directly, which raises NotImplementedError under V3_FEATURE_LOCATIONS=True (the fixture contains deprecated Endpoint records). Adding the @versioned_fixtures decorator swaps it to dojo_testdata_locations.json under V3, matching the convention used by the rest of the suite. Test-only change; verified passing locally under both V3=True and V3=False. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 932f5e0 commit b4d948e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

unittests/test_os_message.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from dojo import context_processors
1212
from dojo.announcement import os_message
1313
from dojo.models import User, UserContactInfo
14-
from unittests.dojo_test_case import DojoTestCase
14+
from unittests.dojo_test_case import DojoTestCase, versioned_fixtures
1515

1616

1717
class _Resp:
@@ -318,6 +318,7 @@ def test_os_banner_not_dismissible_for_anonymous(self):
318318
self.assertFalse(entries[0]["dismissible"])
319319

320320

321+
@versioned_fixtures
321322
class TestDismissOsMessageView(DojoTestCase):
322323
fixtures = ["dojo_testdata.json"]
323324

0 commit comments

Comments
 (0)