- Notifications
You must be signed in to change notification settings - Fork35
Commitb597bf8
authored
Warnings with pytest are fixed (#223)
1) [pytest.ini] testpaths has another format. It is a spaces separated list.pytest warning:PytestConfigWarning: No files were found in testpaths; consider removing or adjusting your testpaths configuration. Searching recursively from the current directory instead.2) pytest tries to find the test function in TestgresException class. Let's rename it to avoid this problem.pytest warning:PytestCollectionWarning: cannot collect test class 'TestgresException' because it has a __init__ constructor (from: tests/test_simple.py) class TestgresException(Exception):Of course, we can add __test__=False in TestgresException but it is not a good solution.1 parent0b2c629 commitb597bf8
2 files changed
+10
-6
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
|
Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 |
| |
15 | 19 |
| |
16 | 20 |
| |
| |||
336 | 340 |
| |
337 | 341 |
| |
338 | 342 |
| |
339 |
| - | |
| 343 | + | |
340 | 344 |
| |
341 | 345 |
| |
342 | 346 |
| |
| |||
366 | 370 |
| |
367 | 371 |
| |
368 | 372 |
| |
369 |
| - | |
| 373 | + | |
370 | 374 |
| |
371 | 375 |
| |
372 | 376 |
| |
| |||
1013 | 1017 |
| |
1014 | 1018 |
| |
1015 | 1019 |
| |
1016 |
| - | |
| 1020 | + | |
1017 | 1021 |
| |
1018 | 1022 |
| |
1019 | 1023 |
| |
| |||
1022 | 1026 |
| |
1023 | 1027 |
| |
1024 | 1028 |
| |
1025 |
| - | |
| 1029 | + | |
1026 | 1030 |
| |
1027 | 1031 |
| |
1028 | 1032 |
| |
|
0 commit comments
Comments
(0)