Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/tests/test_cli_journal.py
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | ): | ||||
) | ) | ||||
# Check the output | # Check the output | ||||
expected_output = "Processed 1 message(s).\nDone.\n" | expected_output = "Processed 1 message(s).\nDone.\n" | ||||
assert result.exit_code == 0, result.output | assert result.exit_code == 0, result.output | ||||
assert result.output == expected_output | assert result.output == expected_output | ||||
actual_visit_stats = swh_scheduler.origin_visit_stats_get( | actual_visit_stats = swh_scheduler.origin_visit_stats_get( | ||||
visit_status["origin"], visit_status["type"] | [(visit_status["origin"], visit_status["type"])] | ||||
) | ) | ||||
assert actual_visit_stats is not None | assert actual_visit_stats | ||||
assert len(actual_visit_stats) == 1 |