mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-06 06:52:20 +02:00
13 lines
429 B
Python
13 lines
429 B
Python
from pathlib import Path
|
|
|
|
|
|
SOURCE = Path(__file__).resolve().parents[1] / "static/js/cookbookRunning.js"
|
|
|
|
|
|
def test_completed_downloads_use_the_finished_ui_label():
|
|
source = SOURCE.read_text(encoding="utf-8")
|
|
|
|
assert "status === 'done' || status === 'completed'" in source
|
|
assert "if (_isFinishedDownload(status, type)) return 'finished';" in source
|
|
assert "_isFinishedDownload(task.status, task.type)" in source
|