Skip to content

Commit

Permalink
Refactor tests to make it easier to add new example functions (#306)
Browse files Browse the repository at this point in the history
* Refactor tests to make it easier to add more example functions

This makes it so that it is possible to add a new example while only
modifying one location in the code. Add a new class / function / exception
in test_integration, indicate the expected output with the @expected decorator.
More efficient than having to modify three different files like we had to do
before.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Some minor improvements

* Fix test

* Ignore types in test_integration.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
hoodmane and pre-commit-ci[bot] committed Jan 20, 2023
1 parent 90ec5a7 commit fb30e40
Show file tree
Hide file tree
Showing 8 changed files with 1,009 additions and 920 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -2,11 +2,11 @@

## 1.21.5

- More robust determination of rtype location / fix issue 302
- More robust determination of rtype location / fix issue 302

## 1.21.4

- Improvements to the location of the return type
- Improvements to the location of the return type

## 1.21.3

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -75,7 +75,7 @@ testpaths = ["tests"]
[tool.mypy]
python_version = "3.10"
strict = true
exclude = "^.*/roots/.*$"
exclude = "^(.*/roots/.*)|(tests/test_integration.py)$"


[[tool.mypy.overrides]]
Expand Down

0 comments on commit fb30e40

Please sign in to comment.