Skip to content

test: use env fixture in token_create_transaction_e2e_test - #2739

Merged
danielmarv merged 1 commit into
hiero-ledger:mainfrom
AhmethanKalenderoglu:test/token-create-e2e-env-fixture
Oct 20, 2026
Merged

danielmarv merged 1 commit into
hiero-ledger:mainfrom
AhmethanKalenderoglu:test/token-create-e2e-env-fixture

Conversation

@AhmethanKalenderoglu

Copy link
Copy Markdown
Contributor

The tests in token_create_transaction_e2e_test.py now take the shared env fixture instead of creating IntegrationTestEnv() and closing it in try/finally. No change to what the tests check.

Fixes #2734

Signed-off-by: Ahmethan Kalenderoğlu <ahmethan@ahmethankalenderoglu.com>
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: hiero-ledger/hiero-sdk-python/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e34d3b76-a62f-47fa-9420-0c8fddd374e0
📥 Commits

Reviewing files that changed from the base of the PR and between 8409f6b and c0d3cca.

📒 Files selected for processing: 1
  • tests/integration/token_create_transaction_e2e_test.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

Token creation integration tests now use the env fixture instead of constructing and closing IntegrationTestEnv instances. The tests retain their existing token creation, signing, fee, auto-renew, expiration, and metadata assertions.

Changes

Token creation integration tests

Layer / File(s) Summary
Use the shared environment fixture
tests/integration/token_create_transaction_e2e_test.py
All tests in the file receive env from the fixture. The tests remove manual environment construction and cleanup while retaining their existing checks.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to c0d3c

Each token-creation test retains its own environment, which is closed after the test; no merge-readiness risk was identified.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Linked Issues check Inconclusive Issue #2734 requires the shared env fixture, removal of direct IntegrationTestEnv construction and manual cleanup, unchanged test behavior, and verification with `uv run pytest tests/integration/t… Provide the result of uv run pytest tests/integration/token_create_transaction_e2e_test.py and reviewable evidence for the complete changed file.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly describes the main change: using the shared env fixture in token creation integration tests.
Description check Passed The description accurately explains the fixture migration, removal of manual cleanup, and unchanged test behavior.
Out of Scope Changes check Passed The supplied summary identifies changes only in tests/integration/token_create_transaction_e2e_test.py. The changes replace per-test environment creation and cleanup with the shared env fixture. T…
Full details: Out of Scope Changes check

Explanation

The supplied summary identifies changes only in tests/integration/token_create_transaction_e2e_test.py. The changes replace per-test environment creation and cleanup with the shared env fixture. These changes directly implement issue #2734. The summary reports no unrelated behavior or assertion changes.

Full details: Linked Issues check

Explanation

Issue #2734 requires the shared env fixture, removal of direct IntegrationTestEnv construction and manual cleanup, unchanged test behavior, and verification with uv run pytest tests/integration/token_create_transaction_e2e_test.py. The supplied change summary supports the fixture and cleanup changes and states that the assertions remain. No test result is reported. The repository diff was unavailable, so the summary does not independently establish the complete implementation or test behavior.

Resolution

Provide the result of uv run pytest tests/integration/token_create_transaction_e2e_test.py and reviewable evidence for the complete changed file.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added open to community review PR is open for community review and feedback queue:junior-committer PR awaiting initial quality review approved Issue has been approved by team member Good First Issue Issues which are ideal for a first time or new project contributor. labels Oct 19, 2026
@github-actions github-actions Bot added queue:committers PR awaiting committer technical review and removed queue:junior-committer PR awaiting initial quality review labels Oct 20, 2026
@github-actions github-actions Bot added status: ready-to-merge PR has 1+ maintainer and 2+ total approvals, ready to merge and removed queue:committers PR awaiting committer technical review labels Oct 20, 2026
@danielmarv
danielmarv merged commit f7f2aa6 into hiero-ledger:main Oct 20, 2026
36 of 40 checks passed
@github-actions

Copy link
Copy Markdown

👋 Hi @AhmethanKalenderoglu! Great work completing a Good First Issue issue! 🎉

Thanks for your contribution! 🚀

Here are some issues you might want to explore next:

🌟 Stay connected:

Happy coding! 🚀
— Hiero Python SDK Team

@manishdait manishdait added this to the v0.3.1 milestone Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Issue has been approved by team member Good First Issue Issues which are ideal for a first time or new project contributor. open to community review PR is open for community review and feedback status: ready-to-merge PR has 1+ maintainer and 2+ total approvals, ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace IntegrationTestEnv() with the env fixture in token_create_transaction_e2e_test.py

4 participants