Ward

Latest version: v0.68.0b0

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

Scan your dependencies

Page 7 of 16

0.42.0b0

You can now tag tests using the `tags` keyword argument of the `test` decorator:

python
test("simple addition", tags=["unit", "regression"])
def _():
assert 1 + 2 == 3


To query these tags, you can use a _tag expression_.


ward --tags EXPR


More examples of tag expressions:

| Tag Expression | Meaning |
| ------------- |-------------|
| `slow` | tests tagged with slow |
| `unit and integration` | tests tagged with both `unit` and `integration` |
| `big and not slow` | tests tagged with `big` that aren't also tagged with `slow` |
| `android or ios` | tests tagged with either `android` or `ios` |

You can use parentheses in tag expressions to change precedence rules to suit your needs.

Thanks thebigmunch for adding this feature.

0.41.0b0

* Migrates Ward to use Poetry instead of Flit/pip.
* Removes chart output after tests run. The chart was causing me maintenance issues and I don't believe it's worth the effort for something that doesn't provide a great deal of value when it comes down to it.
* Updates Makefile and contribution guide
* Updates GitHub Actions to make use of Poetry for dependency management and releasing to PyPI.

0.40.1b0

A release earlier today (11 March 2020) introduced an issue where Ward would raise an exception when a non-comparison based assertion failed. This release fixes that issue.

0.40.0b0

User is informed if Ward finds and uses their pyproject.toml. Thanks to mandarvaze.

0.39.0b0

Show failure location for all AssertionErrors (even those not involving a comparison and therefore not rewritten). Thanks jayeshathila!

0.38.0b0

Changes diff reprs to use `pprintpp` instead of `pprint`. This will make diff output look nicer, and typically pep8 compliant.

Page 7 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.