Skip to content

Commit fb30e40

Browse files
Refactor tests to make it easier to add new example functions (#306)
* 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>
1 parent 90ec5a7 commit fb30e40

File tree

8 files changed

+1009
-920
lines changed

8 files changed

+1009
-920
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## 1.21.5
44

5-
- More robust determination of rtype location / fix issue 302
5+
- More robust determination of rtype location / fix issue 302
66

77
## 1.21.4
88

9-
- Improvements to the location of the return type
9+
- Improvements to the location of the return type
1010

1111
## 1.21.3
1212

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ testpaths = ["tests"]
7575
[tool.mypy]
7676
python_version = "3.10"
7777
strict = true
78-
exclude = "^.*/roots/.*$"
78+
exclude = "^(.*/roots/.*)|(tests/test_integration.py)$"
7979

8080

8181
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)