Skip to content

Commit

Permalink
Add pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
jmathai committed Nov 21, 2022
1 parent 3e88440 commit ff5fe3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
cd ${ELODIE_DIR}
- run:
name: Run tests
command: ./elodie/tests/run_tests.py -w elodie/tests --with-coverage --cover-package=elodie
command: ./elodie/tests/run_tests.py elodie/tests
- run:
name: Generate coverage
command: |
Expand Down
2 changes: 1 addition & 1 deletion elodie/tests/requirements.txt
@@ -1,4 +1,4 @@
-r ../../requirements.txt
flake8==2.6.2
mock==1.3.0
nose==1.3.7
pytest==7.2.0
4 changes: 2 additions & 2 deletions elodie/tests/run_tests.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python

import nose
import os
import pytest
import shutil
import sys
import tempfile
Expand Down Expand Up @@ -33,7 +33,7 @@

test_argv = sys.argv
test_argv.append('--verbosity=2')
result = nose.run(argv=test_argv)
result = pytest.main(test_argv)
if(result):
sys.exit(0)
else:
Expand Down

0 comments on commit ff5fe3c

Please sign in to comment.