Skip to content

Commit 96272fe

Browse files
committed
require pytest as a dependency
1 parent 33b628a commit 96272fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
- name: install pip
194194
run: apt install -y python3-pip
195195
- name: install Python dependencies
196-
run: pip install requests psutil monotonic zmq deepdiff
196+
run: pip install requests pytest psutil monotonic zmq deepdiff
197197
- name: configure git
198198
run: git config --global --add safe.directory '*'
199199
- uses: actions/checkout@v4

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Functional tests are located under the `tests/functional_tests` directory.
5050

5151
Building all the tests requires installing the following dependencies:
5252
```bash
53-
pip install requests psutil monotonic zmq deepdiff
53+
pip install requests pytest psutil monotonic zmq deepdiff
5454
```
5555

5656
First, run a regtest daemon in the offline mode and with a fixed difficulty:

tests/functional_tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ target_link_libraries(make_test_signature
6767
monero_add_minimal_executable(cpu_power_test cpu_power_test.cpp)
6868
find_program(PYTHON3_FOUND python3 REQUIRED)
6969

70-
execute_process(COMMAND ${PYTHON3_FOUND} "-c" "import requests; import psutil; import monotonic; import zmq; import deepdiff; print('OK')" OUTPUT_VARIABLE REQUESTS_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE)
70+
execute_process(COMMAND ${PYTHON3_FOUND} "-c" "import requests; import pytest; import psutil; import monotonic; import zmq; import deepdiff; print('OK')" OUTPUT_VARIABLE REQUESTS_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE)
7171
if (REQUESTS_OUTPUT STREQUAL "OK")
7272
add_test(
7373
NAME functional_tests_rpc
@@ -76,6 +76,6 @@ if (REQUESTS_OUTPUT STREQUAL "OK")
7676
NAME check_missing_rpc_methods
7777
COMMAND ${PYTHON3_FOUND} "${CMAKE_CURRENT_SOURCE_DIR}/check_missing_rpc_methods.py" "${CMAKE_SOURCE_DIR}")
7878
else()
79-
message(WARNING "functional_tests_rpc and check_missing_rpc_methods skipped, needs the 'requests', 'psutil', 'monotonic', 'zmq', and 'deepdiff' python modules")
79+
message(WARNING "functional_tests_rpc and check_missing_rpc_methods skipped, needs the 'requests', 'pytest', 'psutil', 'monotonic', 'zmq', and 'deepdiff' python modules")
8080
set(CTEST_CUSTOM_TESTS_IGNORE ${CTEST_CUSTOM_TESTS_IGNORE} functional_tests_rpc check_missing_rpc_methods)
8181
endif()

0 commit comments

Comments
 (0)