Page MenuHomePhabricator

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

Authored by Fabien on Apr 24 2023, 20:00.

Details

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_*

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik_client
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23429
Build 46477: Build Diffbuild-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang
Build 46476: arc lint + arc unit