File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ hiero-sdk-python/
8484│ └── account_create_transaction.py
8585└── tests/
8686 └── unit/
87- └── test_account_create_transaction .py
87+ └── account_create_transaction_test .py
8888```
8989---
9090
@@ -491,7 +491,7 @@ You may look at an already-created unit test file for better clarity:
491491uv run pytest tests/unit/tokens/token_transfer_test.py -v
492492
493493# Run integration tests
494- uv run pytest tests/integration/token_transfer_e2e_test .py -v
494+ uv run pytest tests/integration/transfer_transaction_e2e_test .py -v
495495```
496496
497497---
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
3+ from pathlib import Path
4+
5+ import pytest
6+
7+
8+ pytestmark = pytest .mark .unit
9+
10+
11+ def test_testing_guide_examples_reference_real_repo_files ():
12+ repo_root = Path (__file__ ).resolve ().parents [2 ]
13+ docs = repo_root / "docs/sdk_developers/testing.md"
14+ contents = docs .read_text (encoding = "utf-8" )
15+
16+ assert "account_create_transaction_test.py" in contents
17+ assert "tests/integration/transfer_transaction_e2e_test.py" in contents
18+ assert (repo_root / "tests/unit/account_create_transaction_test.py" ).is_file ()
19+ assert (repo_root / "tests/integration/transfer_transaction_e2e_test.py" ).is_file ()
You can’t perform that action at this time.
0 commit comments