chore: move new tests onto the shared test helpers

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 06:05:48 +01:00
1 parent 98775b7e4d
commit 589174c369
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -134,7 +134,7 @@ class SourceRevisionReadsEveryShape(unittest.TestCase):
them so, the scrapers' required_revision did not."""
url = "https://raw.githubusercontent.com/ROCKNIX/distribution/20250101/f"
self.assertEqual(required_revision(url, "rocknix/distribution"), "20250101")
with tempfile.TemporaryDirectory(dir=TMP_ROOT) as tmp:
with tempfile.TemporaryDirectory() as tmp:
path = Path(tmp, "p.yml")
path.write_text(f"source: {url}\n")
self.assertEqual(scraped_revision(path, "rocknix/Distribution"), "20250101")