Browse Source

Do not require oslotest for testing

oslotest itself depends on debtcollector and debtcollector depends
on oslotest. That's a cycle dependency which makes bootstrapping the whole
module chain more difficult.
Instead of using oslotest, just use the standard unittest.TestCase class
as base to break the dependency cycle.

Change-Id: Idcbe727883fe2742d62d463bb9a195592aeaba09
Thomas Bechtold 1 year ago
parent
commit
da416d64e2
2 changed files with 2 additions and 3 deletions
  1. 2
    2
      debtcollector/tests/base.py
  2. 0
    1
      test-requirements.txt

+ 2
- 2
debtcollector/tests/base.py View File

@@ -15,9 +15,9 @@
15 15
 # License for the specific language governing permissions and limitations
16 16
 # under the License.
17 17
 
18
-from oslotest import base
18
+import unittest
19 19
 
20 20
 
21
-class TestCase(base.BaseTestCase):
21
+class TestCase(unittest.TestCase):
22 22
 
23 23
     """Test case base class for all unit tests."""

+ 0
- 1
test-requirements.txt View File

@@ -8,7 +8,6 @@ coverage!=4.4,>=4.0 # Apache-2.0
8 8
 python-subunit>=0.0.18 # Apache-2.0/BSD
9 9
 sphinx!=1.6.1,>=1.5.1 # BSD
10 10
 oslosphinx>=4.7.0 # Apache-2.0
11
-oslotest>=1.10.0 # Apache-2.0
12 11
 testrepository>=0.0.18 # Apache-2.0/BSD
13 12
 testtools>=1.4.0 # MIT
14 13
 fixtures>=3.0.0 # Apache-2.0/BSD

Loading…
Cancel
Save