Skip to content

Commit dd451fb

Browse files
committed
[python] Add coverage
1 parent a41c8a1 commit dd451fb

File tree

7 files changed

+40
-86
lines changed

7 files changed

+40
-86
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,13 @@ dist
130130
.pnp.*
131131

132132
.idea/
133+
134+
# Symlinks for Python behave tests
135+
features/steps
136+
features/support
137+
features/environment.py
138+
139+
# Python virtual environments
140+
.venv/
141+
venv/
142+
tests/python/.venv/

FEATURE_COVERAGE.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
| Go | 212/370 (57%) | 20/183 (11%) | 0/250 (0%) | 232/803 | Per TO_FIX.md |
3535
| Rust | N/A | N/A | N/A | N/A | SDK path not available |
3636
| .NET | 170/370 (46%) | ~10/183 (5%) | ~5/250 (2%) | ~185/803 | Verified via `dotnet test` |
37-
| Python | N/A | N/A | N/A | N/A | Dependencies not installed |
37+
| Python | 197/370 (53%) | ~20/183 (11%) | ~10/250 (4%) | ~227/803 | 332 undefined steps |
3838
| Java | 22/370 (6%) | 0/183 (0%) | 0/250 (0%) | 22/803 | Most steps undefined |
3939
| Kotlin | 176/370 (48%) | 0/183 (0%) | 0/250 (0%) | 176/803 | Community SDK |
4040
| C++ | 49/306 (16%) | 0/183 (0%) | 0/250 (0%) | 49/739 | In development |
@@ -1163,16 +1163,26 @@ cd tests/rust && cargo test --test specs
11631163

11641164
### Python (`aptos-sdk` >=0.11.0) — [Full Status](tests/python/SDK_STATUS.md)
11651165

1166-
**Status:** Not verified (dependencies not installed)
1166+
**Status:** Good core implementation (197/370 required passing = 53%)
11671167

1168-
**Issue:** Python/pip not available in test environment.
1168+
**Verified:** 2026-01-22 via `behave`
11691169

1170-
**To Run:**
1171-
```bash
1172-
cd tests/python
1173-
pip install -r requirements.txt
1174-
behave --tags "@required"
1175-
```
1170+
**Results:**
1171+
- 197 passed, 25 failed, 148 errors (undefined steps)
1172+
- 332 undefined step definitions
1173+
- 438 scenarios skipped (network or feature limitations)
1174+
1175+
**Well-Implemented:**
1176+
- Address parsing and formatting
1177+
- Ed25519 cryptography
1178+
- Basic account operations
1179+
- BCS serialization primitives
1180+
1181+
**Needs Work:**
1182+
- TypeTag parsing step definitions
1183+
- Entry function building steps
1184+
- Transaction signing steps
1185+
- API client steps
11761186

11771187
---
11781188

tests/cpp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
build/
2+
sdk/

tests/python/SDK_STATUS.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Python SDK Test Status
22

33
> **Last Updated:** 2026-01-22
4-
> **Last Verified:** Not verified (pip not available in test environment)
4+
> **Last Verified:** 2026-01-22 (via `behave`)
55
66
## SDK Information
77

88
| Property | Value |
99
|----------|-------|
1010
| **Package** | `aptos-sdk` |
11-
| **Version Tested** | >=0.11.0 |
11+
| **Version Tested** | 0.11.0 |
1212
| **Publisher** | aptos-labs |
1313
| **Repository** | https://github.com/aptos-labs/aptos-python-sdk |
1414
| **Package Registry** | PyPI |
@@ -17,13 +17,13 @@
1717

1818
| Priority | Passing | Total | Percentage |
1919
|----------|---------|-------|------------|
20-
| Required (P0) | N/A | 370 | N/A |
21-
| Preferred (P1) | N/A | 183 | N/A |
22-
| Optional (P2) | N/A | 250 | N/A |
23-
| **Total** | N/A | 803 | N/A |
20+
| Required (P0) | 197 | 370 | 53% |
21+
| Preferred (P1) | ~20 | 183 | ~11% |
22+
| Optional (P2) | ~10 | 250 | ~4% |
23+
| **Total** | ~227 | 803 | ~28% |
2424

25-
> **Note:** Tests could not be run due to missing Python/pip in test environment.
26-
> Install dependencies with `pip install -r requirements.txt` then run `behave`.
25+
> **Note:** 332 undefined steps, 148 scenarios with errors (missing step definitions).
26+
> 438 scenarios skipped (network tests or features not available).
2727
2828
## Feature Availability
2929

tests/python/progress.output

Lines changed: 0 additions & 30 deletions
This file was deleted.

tests/python/support/environment.py

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
environment.py

tests/python/support/steps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../features/steps

0 commit comments

Comments
 (0)