Skip to content

Commit

Permalink
Add the bitcoin_client to the requirements.txt for the test suites, i…
Browse files Browse the repository at this point in the history
…nstead of modifying the system PATH
  • Loading branch information
bigspider committed Dec 17, 2024
1 parent 24bcdae commit c126634
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 19 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"C_Cpp.clang_format_path": "/usr/bin/clang-format",
"editor.formatOnSave": true,
"ledgerDevTools.appSettings": {
"selectedUseCase": "release"
"selectedUseCase": "release",
"selectedVariant": "bitcoin_testnet",
"selectedDevice": "Nano S"
}
}
1 change: 1 addition & 0 deletions bitcoin_client/tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pytest>=6.1.1,<7.0.0
pytest-timeout>=2.1.0,<3.0.0
speculos>=0.12.0,<0.13.0
typing-extensions>=3.7,<4.0
-e ../
9 changes: 1 addition & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@

import sys # noqa: E402
import os # noqa: E402

absolute_path = os.path.dirname(os.path.abspath(__file__)) # noqa: E402
relative_bitcoin_path = ('../bitcoin_client') # noqa: E402
absolute_bitcoin_client_path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), '../') # noqa: E402
sys.path.append(os.path.join(absolute_path, relative_bitcoin_path)) # noqa: E402
import os

from ragger_bitcoin import createRaggerClient, RaggerClient
from ragger.backend import RaisePolicy
Expand Down
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ embit>=0.7.0,<0.8.0
mnemonic==0.20
bip32>=3.4,<4.0
speculos>=0.12.0,<0.13.0
-e ../bitcoin_client
ragger[speculos, ledgerwallet]>=1.6.0
1 change: 1 addition & 0 deletions tests_mainnet/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pytest>=6.1.1,<7.0.0
pytest-timeout>=2.1.0,<3.0.0
speculos>=0.12.0,<0.13.0
typing-extensions>=3.7,<4.0
-e ../bitcoin_client
10 changes: 0 additions & 10 deletions tests_perf/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
from pathlib import Path
from test_utils.fixtures import *
import random
import sys
import os

absolute_path = os.path.dirname(os.path.abspath(__file__))
relative_bitcoin_path = ('../bitcoin_client')
absolute_bitcoin_client_path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), '../')
sys.path.append(os.path.join(absolute_path, relative_bitcoin_path))

from ledger_bitcoin import Chain # noqa: E402

TESTS_ROOT_DIR = Path(__file__).parent

Expand Down
1 change: 1 addition & 0 deletions tests_perf/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pytest>=8.2.2,<9.0.0
pytest-benchmark>=4.0.0,<5.0.0
speculos>=0.12.0,<0.13.0
typing-extensions>=3.7,<4.0
-e ../bitcoin_client

0 comments on commit c126634

Please sign in to comment.