From da416d64e219ff75f82b2fd29b5709112a6b43eb Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 22 May 2017 11:24:11 +0200 Subject: [PATCH] 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 --- debtcollector/tests/base.py | 4 ++-- test-requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/debtcollector/tests/base.py b/debtcollector/tests/base.py index 1c30cdb..5154326 100644 --- a/debtcollector/tests/base.py +++ b/debtcollector/tests/base.py @@ -15,9 +15,9 @@ # License for the specific language governing permissions and limitations # under the License. -from oslotest import base +import unittest -class TestCase(base.BaseTestCase): +class TestCase(unittest.TestCase): """Test case base class for all unit tests.""" diff --git a/test-requirements.txt b/test-requirements.txt index 0a17355..8ea24fc 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,7 +8,6 @@ coverage!=4.4,>=4.0 # Apache-2.0 python-subunit>=0.0.18 # Apache-2.0/BSD sphinx!=1.6.1,>=1.5.1 # BSD oslosphinx>=4.7.0 # Apache-2.0 -oslotest>=1.10.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testtools>=1.4.0 # MIT fixtures>=3.0.0 # Apache-2.0/BSD