@@ -242,7 +242,7 @@ def test_ci_audits_core_and_complete_locked_environments() -> None:
242242 assert "complete.txt" in audit
243243
244244
245- def test_core_dependency_uses_bounded_specs_or_immutable_source_for_qualification () -> None :
245+ def test_core_dependency_requires_published_time_contract_v2 () -> None :
246246 project = tomllib .loads ((ROOT / "pyproject.toml" ).read_text (encoding = "utf-8" ))
247247 lock = tomllib .loads ((ROOT / "uv.lock" ).read_text (encoding = "utf-8" ))
248248
@@ -252,17 +252,10 @@ def test_core_dependency_uses_bounded_specs_or_immutable_source_for_qualificatio
252252 if Requirement (value ).name == "ml4t-specs"
253253 )
254254 specs = next (package for package in lock ["package" ] if package ["name" ] == "ml4t-specs" )
255- if requirement .url is None :
256- assert str (requirement .specifier ) == "<0.2.0,>=0.1.0"
257- assert specs ["version" ] in requirement .specifier
258- else :
259- assert re .fullmatch (
260- r"git\+https://github.com/ml4t/specs\.git@[0-9a-f]{40}" , requirement .url
261- )
262- commit = requirement .url .rsplit ("@" , maxsplit = 1 )[1 ]
263- assert specs ["source" ] == {
264- "git" : f"https://github.com/ml4t/specs.git?rev={ commit } #{ commit } "
265- }
255+ assert requirement .url is None
256+ assert str (requirement .specifier ) == "<0.3.0,>=0.2.0"
257+ assert specs ["version" ] in requirement .specifier
258+ assert specs ["source" ] == {"registry" : "https://pypi.org/simple" }
266259
267260
268261def test_package_supports_python_312_through_314 () -> None :
0 commit comments