Skip to content

Commit

Permalink
Moved 'test_utils' inside 'tests' folder; add repository root to PYTH…
Browse files Browse the repository at this point in the history
…ONPATH in conftest.py
  • Loading branch information
bigspider committed Apr 20, 2024
1 parent 838c569 commit 8f325d6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ jobs:
pip install .
- name: Create test wallet
run: bash ./examples/init.sh
- name: Add repository root to PYTHONPATH
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
- name: Run tests and capture output
run: pytest -vv
- name: Upload test output as artifact
Expand Down
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import pytest

import sys
import os
from pathlib import Path

from matt.btctools.auth_proxy import AuthServiceProxy
from matt.manager import ContractManager
from test_utils.utxograph import create_utxo_graph

root_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../')
sys.path.append(root_path)


rpc_url = "http://%s:%s@%s:%s" % (
os.getenv("BTC_RPC_USER", "rpcuser"),
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8f325d6

Please sign in to comment.