HomeSoftware Heritage

Simplify journal client tests

Description

Simplify journal client tests

  • sort visits by default (there is a test dedicated to dealing with unsorted messagaes from the journal),
  • remove "intermediate checks" in several tests: these do not help much but make the code more difficult to read and maintain,
  • rename VISIT_STATUSES1 as VISIT_STATUSES_1 to make less prone to being confused with VISIT_STATUSES (which also exists).

Details

Provenance
douarddaAuthored on Jan 20 2021, 12:32 PM
douarddaPushed on Jan 21 2021, 9:55 AM
Differential Revision
D4894: Simplify journal client tests
Parents
rDSCHc7b740cafa64: Revert "Make sure swh.scheduler.cli.journal is loaded in test_cli_journal.py"
Branches
Unknown
Tags
Unknown
Build Status
Buildable 18582
Build 28738: test-and-buildJenkins console · Jenkins