mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-16 05:02:21 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from tests.helpers.cli_loader import load_script
|
||||
from tests.helpers.db_stubs import make_core_db_stub
|
||||
|
||||
|
||||
def test_preview_text_ignores_non_string_values(monkeypatch):
|
||||
make_core_db_stub(monkeypatch, models=["ScheduledTask", "TaskRun"])
|
||||
cli = load_script("odysseus-tasks")
|
||||
|
||||
assert cli._preview_text(None) == ""
|
||||
assert cli._preview_text({"bad": "row"}) == ""
|
||||
assert cli._preview_text("x" * 201) == ("x" * 200) + "…"
|
||||
Reference in New Issue
Block a user