Skip to content

Commit 8b91029

Browse files
authored
Merge branch 'master' into abstracted-uids-in-docker
2 parents 112cef4 + 6dfab24 commit 8b91029

File tree

8 files changed

+12
-10
lines changed

8 files changed

+12
-10
lines changed

components/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
22
Just my __init__.py to conform to standards.
33
"""
4+
45
__version__ = "3.1.0-alpha"
6+

components/tools/dialog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get_section(normal=True):
129129
eat_empty_lines()
130130

131131
if BranchingDialogParser.LABEL_LIST.match(lstring[self.__lineno]):
132-
labels = lstring[self.__lineno].split(",\s*")
132+
labels = lstring[self.__lineno].split(r",\s*")
133133
labels = re.split(r",\s*", lstring[self.__lineno])
134134
self.__lineno += 1
135135
return (label, DialogSection(prompt=option_s, reply=reply_s, cont=labels))

pytest.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
python_files = *_tests.py

requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
nose==1.3.7
2-
mock==2.0.0
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+
coverage run --source=components -m pytest
1515
result=$?
1616

1717
kill $PID_XVFB

test-requirements.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
coverage==3.7.1
2-
nosexcover==1.0.10
3-
python-coveralls==2.5.0
4-
mock==2.0.0
1+
coverage==5.2.1
2+
coveralls==2.1.2
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)