generated from john/python-template
test updates
This commit is contained in:
@@ -25,8 +25,9 @@ class TestPageRegistration:
|
||||
*,
|
||||
mount_path: str,
|
||||
show_welcome_message: bool,
|
||||
dark: bool,
|
||||
) -> None:
|
||||
calls.append(f"run_with:{mount_path}:{show_welcome_message}")
|
||||
calls.append(f"run_with:{mount_path}:{show_welcome_message}:{dark}")
|
||||
|
||||
monkeypatch.setattr("transcription.ui.register_upload_page", _record_upload)
|
||||
monkeypatch.setattr("transcription.ui.register_jobs_page", _record_jobs)
|
||||
@@ -35,4 +36,4 @@ class TestPageRegistration:
|
||||
app = FastAPI()
|
||||
register_pages(app)
|
||||
|
||||
assert calls == ["upload", "jobs", "run_with:/ui:False"]
|
||||
assert calls == ["upload", "jobs", "run_with:/ui:False:True"]
|
||||
|
||||
Reference in New Issue
Block a user