Skip to content

Commit f111c93

Browse files
committed
docs: fix testing guide example filenames
Signed-off-by: Zainab Travadi <zainabtravadi421@gmail.com>
1 parent 5345fd5 commit f111c93

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

docs/sdk_developers/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:
491491
uv 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
---
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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()

0 commit comments

Comments
 (0)