Spaces:
Sleeping
Sleeping
IliaLarchenko
commited on
Commit
•
40eb648
1
Parent(s):
bdf3c12
Fixed test exit code
Browse files
test.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
-
|
2 |
|
3 |
import pytest
|
4 |
|
5 |
if __name__ == "__main__":
|
6 |
# Run pytest on the tests directory
|
7 |
-
pytest.main(["-v", "./tests"])
|
|
|
|
|
|
1 |
+
import sys
|
2 |
|
3 |
import pytest
|
4 |
|
5 |
if __name__ == "__main__":
|
6 |
# Run pytest on the tests directory
|
7 |
+
exit_code = pytest.main(["-v", "./tests"])
|
8 |
+
|
9 |
+
sys.exit(exit_code)
|