test: isolate publication fixtures from release env
All checks were successful
Build and publish policy-nexus image / build-and-push (push) Successful in 56s

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a058f3-8ba0-7692-a042-9a870fc3d663
This commit is contained in:
tegwick 2026-09-01 00:38:44 +02:00
parent 8ea8a4b41c
commit 1e6720b9ee

View file

@ -71,6 +71,15 @@ review_interval: 6m
class PublicationTest(unittest.TestCase):
def setUp(self) -> None:
self.source_root_env = mock.patch.dict(
os.environ, {"POLICY_NEXUS_SOURCE_ROOT": ""}, clear=False
)
self.source_root_env.start()
def tearDown(self) -> None:
self.source_root_env.stop()
def test_archive_build_accepts_only_exact_source_revision_override(self) -> None:
with tempfile.TemporaryDirectory() as directory:
root = Path(directory)