HomePhabricator

[chronik] Fix running the functional tests with no chronik dependencies

Description

[chronik] Fix running the functional tests with no chronik dependencies

Summary: Chronik dependencies should not be required for running the functional tests when chronik is not built. This diff makes all the dependencies be imported by chronik.x modules, and these modules imported as needed in the tests run() methods so they are properly skipped with no error if chronik is not built.

Test Plan:
With no chronik and no websocket-client python module installed:

ninja check-functional    # would break before this patch

With chronik built and the websocket-client python module installed:

./test/functional/test_runner.py chronik_*

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D13771

Details

Provenance
FabienAuthored on Apr 24 2023, 20:00
FabienPushed on Apr 24 2023, 20:18
Reviewer
Restricted Project
Differential Revision
D13771: [chronik] Fix running the functional tests with no chronik dependencies
Parents
rABC148db976d886: [Chronik] Refactor: Add `make_outpoint_proto`
Branches
Unknown
Tags
Unknown