Commit fb30e40
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- tests
- roots
- test-dummy
- test-integration
8 files changed
+1009
-920
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments