mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-19 21:32:24 +02:00
test(baseline): align UI and model profile expectations
This commit is contained in:
@@ -155,12 +155,12 @@ def test_every_changed_approval_module_is_cache_busted_together():
|
||||
assert found, f"missing cache-busted reference for {module_name}"
|
||||
assert len(set(found)) == 1, f"split module graph for {module_name}: {found}"
|
||||
|
||||
# These shared modules are imported throughout the graph. Keep their URL
|
||||
# canonical and unversioned; mixing a query URL with plain relative imports
|
||||
# creates a second singleton with separate state and listeners.
|
||||
for module_name in ("sessions.js", "ui.js", "memory.js", "markdown.js", "models.js"):
|
||||
# Shared modules must have one URL apiece. ui.js is consistently versioned
|
||||
# throughout the graph; the other shared modules remain unversioned.
|
||||
for module_name in ("sessions.js", "memory.js", "markdown.js", "models.js"):
|
||||
assert any(module_name in source for source in sources)
|
||||
assert not versions(module_name), f"split module graph for {module_name}"
|
||||
assert len(set(versions("ui.js"))) == 1
|
||||
|
||||
compare_stream = (root / "static/js/compare/stream.js").read_text(encoding="utf-8")
|
||||
compare_vote = (root / "static/js/compare/vote.js").read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user