Skip to content

Commit d5a82cf

Browse files
committed
Move to pytest. Closes #43.
1 parent 8945e38 commit d5a82cf

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nose==1.3.7
1+
pytest==6.0.1

runtests

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $XVFB :99 -ac &
1111
PID_XVFB="$!"
1212
export DISPLAY=:99
1313

14-
nosetests tests --with-xcoverage
14+
pytest --cov=components tests
1515
result=$?
1616

1717
kill $PID_XVFB

test-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
coverage==5.2.1
2-
nosexcover==1.0.11
32
python-coveralls==2.9.3
3+
pytest-cov==2.10.1

tests/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from mock import MagicMock
1+
from unittest.mock import MagicMock
22

33
def make_mock_clock():
44
mock_clock = MagicMock()

tests/components/helpers/scheduler_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from components.helpers.scheduler import Scheduler
2-
from mock import MagicMock, Mock, patch
2+
from unittest.mock import MagicMock, Mock, patch
33

44
import unittest
55

0 commit comments

Comments
 (0)