Skip to content

test: introduce pytest framework aligned with upstream 🧪#215

Closed
Klazomenai wants to merge 1 commit intoautonity:masterfrom
Klazomenai:test/2-pytest-framework
Closed

test: introduce pytest framework aligned with upstream 🧪#215
Klazomenai wants to merge 1 commit intoautonity:masterfrom
Klazomenai:test/2-pytest-framework

Conversation

@Klazomenai
Copy link
Copy Markdown

Summary

  • Port 4 existing unit tests from unittest.TestCase to plain pytest assertions (assert, pytest.raises())
  • Add dedicated [tool.hatch.envs.test] with pytest, pytest-cov, pytest-mock, and responses dependencies
  • Add [tool.pytest.ini_options] config with integration marker for future use
  • Create tests/conftest.py with runner (CliRunner) and autrc fixtures aligned with upstream's standalone-tests branch

Test plan

  • hatch run test:all — pytest runs, 4 tests pass
  • hatch run test:cov — coverage report generated
  • hatch run lint:check-code — ruff + black pass
  • hatch run pyright — no new errors (1 pre-existing device.py trezor type error)
  • hatch run unit-tests — default env delegation to test env works

Refs #2

🤖 Generated with Claude Code

Port existing 4 unit tests from unittest.TestCase to plain pytest
assertions, add dedicated hatch test environment with pytest-cov,
pytest-mock and responses, and create conftest.py with CliRunner
and autrc fixtures aligned with upstream's standalone-tests branch.

Refs #2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Klazomenai
Copy link
Copy Markdown
Author

Opened on wrong repo by mistake, closing.

@Klazomenai Klazomenai closed this Mar 18, 2026
@Klazomenai Klazomenai deleted the test/2-pytest-framework branch March 18, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant