From 6c2940aebc82e723d607f7e1655685c4a6469f73 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 3 Aug 2026 03:07:59 +0200 Subject: [PATCH] Refresh shared contract test fixtures --- src/govoplan_core/core/feeds.py | 2 +- tests/test_datasource_contract.py | 11 +++++++++++ tests/test_wheel_runtime.py | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/govoplan_core/core/feeds.py b/src/govoplan_core/core/feeds.py index 4b793b4..4031c31 100644 --- a/src/govoplan_core/core/feeds.py +++ b/src/govoplan_core/core/feeds.py @@ -1,6 +1,6 @@ from __future__ import annotations -from collections.abc import Mapping, Sequence +from collections.abc import Mapping from dataclasses import dataclass, field from datetime import datetime from typing import Literal, Protocol, runtime_checkable diff --git a/tests/test_datasource_contract.py b/tests/test_datasource_contract.py index 05c92bc..d15ccef 100644 --- a/tests/test_datasource_contract.py +++ b/tests/test_datasource_contract.py @@ -95,6 +95,17 @@ class _Provider: del session, principal, datasource_ref return self.promote_stage(object(), object(), stage_ref="stage:1") + def update_datasource_governance( + self, + session, + principal, + *, + datasource_ref, + governance, + ): + del session, principal, datasource_ref, governance + return self.descriptor + def freeze_datasource(self, session, principal, *, datasource_ref, label=None): del session, principal, datasource_ref, label return self.promote_stage(object(), object(), stage_ref="stage:1")[1] diff --git a/tests/test_wheel_runtime.py b/tests/test_wheel_runtime.py index 79d2b35..1107c4e 100644 --- a/tests/test_wheel_runtime.py +++ b/tests/test_wheel_runtime.py @@ -69,7 +69,7 @@ class WheelRuntimeTests(unittest.TestCase): self.assertNotEqual(repository_root, runtime_root) self.assertTrue((runtime_root / "alembic.ini").is_file()) self.assertTrue((runtime_root / "alembic" / "env.py").is_file()) - self.assertEqual(["d03a7b9c1e5f"], result["heads"]) + self.assertEqual(["e14b8c2d6f90"], result["heads"]) self.assertIn("core_scopes", result["tables"]) self.assertIn("core_system_settings", result["tables"])