Page MenuHomeSoftware Heritage
Paste P1501

(An Untitled Masterwork)
ActivePublic

Authored by douardda on Oct 18 2022, 11:53 AM.
pytest --log-level DEBUG --durations=0 swh -m kafka -k revision_from_journal_client -vv -s
[...]
12.20s call swh/provenance/tests/test_journal_client.py::test_cli_revision_from_journal_client <=== NOTE THIS
# note that test_cli_origin_from_journal_client comes before test_cli_revision_from_journal_client
# in the test_journal_client.py file, so is executed first
pytest --log-level DEBUG --durations=0 swh -m kafka -k from_journal_client -vv -s
[...]
45.19s call swh/provenance/tests/test_journal_client.py::test_cli_revision_from_journal_client <=== VS THIS
12.23s call swh/provenance/tests/test_journal_client.py::test_cli_origin_from_journal_client
# changing swh-journal's kafka_server_base() fixture from scope="session" to scope="function":
12.38s call swh/provenance/tests/test_journal_client.py::test_cli_origin_from_journal_client
12.36s call swh/provenance/tests/test_journal_client.py::test_cli_revision_from_journal_client