Vampytest

Latest version: v0.0.22

Safety actively analyzes 701442 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.0.22

Bug fixes

- In reports `Unsatisfied function parameters` section was not rendering as intended.

0.0.21

Improvements

- Test file & directory name checks are now more specific.
- `TestFileLoadFailure` now stores the exception instead of its message.
Originally wanted to deallocate the traceback, but representing the exception with deallocated turned out to be
a longer task than expected. This also means that the default writer now highlights it as intended.
- `AssertionException` rendering moved out to rendering.
- Add missing `AssertionException.__new__`.
- Conditional assertions are not using a meta type to invoke them after constructor instead all uses a top level
function. This is to make them easier to test with.
- Assertion rendering is now highlighted.
- Add `TestFile.path_parts`. `TestFile.import_route` is now a property.
- Add `TestCase.path_parts`.
- Add `Handle.get_test_documentation_lines`.
Remove old `.get_test_documentation` which also added a prefix in front of each line.
- Add `highlighter` parameter to `DefaultEventFormatter.__new__`.
- Reorder `ReportFailureRaising`'s and `Result.with_exception`'s parameters.
In short: from `accept, received, accept`; to `accept, accept, received`.
- Reports are now highlighted.
- Assertion report renderer now displays exceptions raised while invoking their condition.
- `AssertionRaising` now differentiates if it failed due to not receiving exception & receiving a different exception.
- Assertion report rendering now renders the captured different exception inside of a `AssertionRaising`.
- Results are now highlighted.

0.0.20

Bug fixes

- Fix `mock_globals` did not analyze nested code objects.
Caused `NameError` when mocking a function with inline generator.

0.0.19

Improvements

- Improve source root lookup: Correctly handle fallback for project name.
- Improve source root lookup: Add fallback for project scripts.
- Improve source root lookup: Add fallback for git.

0.0.18

Improvements

- Use `:` to separate file path and test name. From `.`. This allows easier copy pasting.

0.0.17

Improvements

- Add `TestFile.has_failed_test`.
- Add `RunnerContext.has_failed_test`.
- Add `TestRunner.get_return_code`.
- Add `TestRunner.set_return_code`.
- `TestRunner.run` now returns its return code instead of a boolean.
- `run_tests_in` now returns its return code instead of none.
- `execute_from_parameters` now returns its return code instead of boolean.
- `__main__` now exits with the respective return code.

Renames, Deprecation & Removals

- Rename `execute_from_terminal` to `execute_from_parameters`.

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.