IliaLarchenko commited on
Commit
40eb648
1 Parent(s): bdf3c12

Fixed test exit code

Browse files
Files changed (1) hide show
  1. test.py +4 -2
test.py CHANGED
@@ -1,7 +1,9 @@
1
- # test.py in your project root
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)