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
Lint
Lint Not Applicable
Unit
Tests Not Applicable