aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2020-12-20 21:09:06 -0500
committerMatt Turner <mattst88@gentoo.org>2020-12-20 22:24:54 -0500
commit5e421373f2cc82ad2a000925e01bb5421d280b76 (patch)
tree9bd0906080aaf27d916364331abad4ec984a2b83
parentRemove unused sys imports (diff)
downloadgentoolkit-5e421373.tar.gz
gentoolkit-5e421373.tar.bz2
gentoolkit-5e421373.zip
ekeyword: Rename unit test so that it runs
unittests should be named test_*.py so that they are discoverable. Signed-off-by: Matt Turner <mattst88@gentoo.org>
-rw-r--r--pym/gentoolkit/ekeyword/pytest.ini2
-rwxr-xr-xpym/gentoolkit/ekeyword/test_ekeyword.py (renamed from pym/gentoolkit/ekeyword/ekeyword_unittest.py)2
2 files changed, 2 insertions, 2 deletions
diff --git a/pym/gentoolkit/ekeyword/pytest.ini b/pym/gentoolkit/ekeyword/pytest.ini
index 622c9d8..7e21bec 100644
--- a/pym/gentoolkit/ekeyword/pytest.ini
+++ b/pym/gentoolkit/ekeyword/pytest.ini
@@ -1,3 +1,3 @@
[pytest]
addopts = --cov
-python_files = *_unittest.py
+python_files = test_*.py
diff --git a/pym/gentoolkit/ekeyword/ekeyword_unittest.py b/pym/gentoolkit/ekeyword/test_ekeyword.py
index ef2e256..3d23585 100755
--- a/pym/gentoolkit/ekeyword/ekeyword_unittest.py
+++ b/pym/gentoolkit/ekeyword/test_ekeyword.py
@@ -12,7 +12,7 @@ import unittest
import mock
-import ekeyword
+from gentoolkit.ekeyword import ekeyword
TESTDIR = os.path.join(os.path.dirname(__file__), 'tests')