Skip to content

Commit 9c34c01

Browse files
Move test_impersonate_account test to tests_on_networks (#1481)
* Move `client_devnet` to `tests_on_networks` * Fix module path * Format; Fix linting * Format * Fix fixture name * Format * Fix linting * Install devnet in network tests job * Revert "Install devnet in network tests job" This reverts commit 20c7313. * Move devnet client tests back; Move `account_impersonate_test` to network tests * Add `--contract_dir=v2` arg to `test_ci_on_networks` * Fix `test_ci_on_networks` args order * Fix `test_ci_on_networks` args * Install devnet in network tests job; Move devnet client tests which don't rely on network * Update "Setup" section * Move all devnet client tests to network tests
1 parent bdfb650 commit 9c34c01

File tree

16 files changed

+38
-31
lines changed

16 files changed

+38
-31
lines changed

β€Ž.github/workflows/checks.ymlβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ jobs:
287287
run: |
288288
poetry install
289289
290+
# ====================== SETUP DEVNET ====================== #
291+
292+
- name: Install devnet
293+
run: ./starknet_py/tests/install_devnet.sh
294+
290295
# ====================== RUN TESTS ====================== #
291296

292297
- name: Check circular imports

β€Ždocs/development.rstβ€Ž

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ To install `starknet-devnet-rs <https://github.com/0xSpaceShard/starknet-devnet-
2323
Environment variables
2424
^^^^^^^^^^^^^^^^^^^^^
2525

26-
In order to be able to run devnet client tests (``starknet_py/tests/e2e/client_devnet``) you must set environmental variable:
26+
In order to be able to run tests on testnet network (``starknet_py/tests/e2e/tests_on_networks/``), you must set some environmental variables:
2727

2828
- ``SEPOLIA_RPC_URL``
29-
30-
To run tests on testnet network (``starknet_py/tests/e2e/tests_on_networks/``) additionally you must set:
31-
3229
- ``SEPOLIA_ACCOUNT_PRIVATE_KEY``
3330
- ``SEPOLIA_ACCOUNT_ADDRESS``
3431

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test_ci = ["test_ci_v1", "test_ci_v2"]
6666
test_ci_v1 = "coverage run -a -m pytest --contract_dir=v1 starknet_py --ignore=starknet_py/tests/e2e/docs --ignore=starknet_py/tests/e2e/tests_on_networks"
6767
test_ci_v2 = "coverage run -a -m pytest --contract_dir=v2 starknet_py --ignore=starknet_py/tests/e2e/docs --ignore=starknet_py/tests/e2e/tests_on_networks"
6868

69-
test_ci_on_networks = "coverage run -a -m pytest starknet_py/tests/e2e/tests_on_networks"
69+
test_ci_on_networks = "coverage run -a -m pytest --contract_dir=v2 starknet_py/tests/e2e/tests_on_networks"
7070

7171
test_ci_docs = ["test_ci_docs_v1", "test_ci_docs_v2"]
7272
test_ci_docs_v1 = "coverage run -a -m pytest --contract_dir=v1 starknet_py/tests/e2e/docs"

β€Žstarknet_py/conftest.pyβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"starknet_py.tests.e2e.client.fixtures.transactions",
1212
"starknet_py.tests.e2e.client.fixtures.prepare_network",
1313
"starknet_py.tests.e2e.tests_on_networks.fixtures",
14-
"starknet_py.tests.e2e.client_devnet.fixtures.accounts",
15-
"starknet_py.tests.e2e.client_devnet.fixtures.clients",
16-
"starknet_py.tests.e2e.client_devnet.fixtures.contracts",
14+
"starknet_py.tests.e2e.tests_on_networks.client_devnet.fixtures.accounts",
15+
"starknet_py.tests.e2e.tests_on_networks.client_devnet.fixtures.clients",
16+
"starknet_py.tests.e2e.tests_on_networks.client_devnet.fixtures.contracts",
1717
]

β€Žstarknet_py/tests/e2e/tests_on_networks/client_devnet/fixtures/__init__.pyβ€Ž

Whitespace-only changes.

0 commit comments

Comments
Β (0)