Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/ekeyword/
Date: Mon, 28 Dec 2020 17:52:03
Message-Id: 1608521094.5e421373f2cc82ad2a000925e01bb5421d280b76.mattst88@gentoo
1 commit: 5e421373f2cc82ad2a000925e01bb5421d280b76
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 21 02:09:06 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 21 03:24:54 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=5e421373
7
8 ekeyword: Rename unit test so that it runs
9
10 unittests should be named test_*.py so that they are discoverable.
11
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 pym/gentoolkit/ekeyword/pytest.ini | 2 +-
15 pym/gentoolkit/ekeyword/{ekeyword_unittest.py => test_ekeyword.py} | 2 +-
16 2 files changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/pym/gentoolkit/ekeyword/pytest.ini b/pym/gentoolkit/ekeyword/pytest.ini
19 index 622c9d8..7e21bec 100644
20 --- a/pym/gentoolkit/ekeyword/pytest.ini
21 +++ b/pym/gentoolkit/ekeyword/pytest.ini
22 @@ -1,3 +1,3 @@
23 [pytest]
24 addopts = --cov
25 -python_files = *_unittest.py
26 +python_files = test_*.py
27
28 diff --git a/pym/gentoolkit/ekeyword/ekeyword_unittest.py b/pym/gentoolkit/ekeyword/test_ekeyword.py
29 similarity index 99%
30 rename from pym/gentoolkit/ekeyword/ekeyword_unittest.py
31 rename to pym/gentoolkit/ekeyword/test_ekeyword.py
32 index ef2e256..3d23585 100755
33 --- a/pym/gentoolkit/ekeyword/ekeyword_unittest.py
34 +++ b/pym/gentoolkit/ekeyword/test_ekeyword.py
35 @@ -12,7 +12,7 @@ import unittest
36
37 import mock
38
39 -import ekeyword
40 +from gentoolkit.ekeyword import ekeyword
41
42
43 TESTDIR = os.path.join(os.path.dirname(__file__), 'tests')