Commit e2a8a44
Migrate tests from pytest to rustest
- Replace all pytest imports with rustest in test files
- Replace all pytest.raises() calls with rustest.raises()
- Update poe test task to use 'python -m rustest' for proper module imports
- All 71 tests pass successfully with rustest
rustest provides drop-in replacement functionality for pytest with markdown
code block testing support built-in via the --no-codeblocks flag. (#4)
* Replace pytest with rustest>=0.4.0
- Add rustest>=0.4.0 to dev dependencies (both optional-dependencies and dependency-groups)
- Remove pytest, pytest-cov, and pytest-codeblocks from all dependency sections
- Update poe test task to use rustest instead of pytest
- Comment out pytest configuration section as it's no longer needed
rustest now includes markdown code block test functionality, eliminating the need for pytest-codeblocks.
* Migrate tests from pytest to rustest
- Replace all pytest imports with rustest in test files
- Replace all pytest.raises() calls with rustest.raises()
- Update poe test task to use 'python -m rustest' for proper module imports
- All 71 tests pass successfully with rustest
rustest provides drop-in replacement functionality for pytest with markdown
code block testing support built-in via the --no-codeblocks flag.
* Fix markdown code block testing for rustest 0.4.0
- Update test-md command to explicitly list markdown files (README.md, CONTRIBUTING.md)
instead of using glob pattern that was picking up .venv files
- Change non-executable syntax examples in README from python code blocks to text blocks
to prevent rustest from attempting to execute them
- Remove obsolete <!--pytest.mark.skip--> HTML comments (pytest-codeblocks feature)
All tests now passing:
- Regular tests: 74/74 passed
- Markdown tests: 16/16 passed
- Coverage: 100%
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 04158b9 commit e2a8a44
3 files changed
+27
-139
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
| 619 | + | |
623 | 620 | | |
624 | 621 | | |
625 | 622 | | |
| |||
630 | 627 | | |
631 | 628 | | |
632 | 629 | | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
| 630 | + | |
637 | 631 | | |
638 | 632 | | |
639 | 633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 57 | + | |
| 58 | + | |
68 | 59 | | |
69 | 60 | | |
70 | 61 | | |
| |||
130 | 121 | | |
131 | 122 | | |
132 | 123 | | |
133 | | - | |
| 124 | + | |
134 | 125 | | |
135 | 126 | | |
136 | 127 | | |
| |||
149 | 140 | | |
150 | 141 | | |
151 | 142 | | |
152 | | - | |
| 143 | + | |
153 | 144 | | |
154 | | - | |
155 | | - | |
156 | 145 | | |
157 | 146 | | |
158 | 147 | | |
0 commit comments