Browse Source

Removes unused TimeOverride class

The class TimeOverride is currently not used anywhere in the codebase.
Also set_time_override function is planned to be removed for
incubation graduation. Using mock or fixtures to mock utcnow is preferred.

Change-Id: I007bdd8ffe7ed37d02f6f6077dc572ef95a2a072
Partial-Bug: #1266962
tags/0.0.7^0
Zhongyue Luo 5 years ago
parent
commit
42c676194d
1 changed files with 0 additions and 10 deletions
  1. 0
    10
      tuskar/tests/base.py

+ 0
- 10
tuskar/tests/base.py View File

@@ -43,7 +43,6 @@ from tuskar.db import migration
43 43
 from tuskar.common import paths
44 44
 from tuskar.openstack.common.db.sqlalchemy import session
45 45
 from tuskar.openstack.common import log as logging
46
-from tuskar.openstack.common import timeutils
47 46
 from tuskar.tests import conf_fixture
48 47
 from tuskar.tests import policy_fixture
49 48
 
@@ -216,12 +215,3 @@ class TestCase(testtools.TestCase, unittest2.TestCase):
216 215
             return os.path.join(root, project_file)
217 216
         else:
218 217
             return root
219
-
220
-
221
-class TimeOverride(fixtures.Fixture):
222
-    """Fixture to start and remove time override."""
223
-
224
-    def setUp(self):
225
-        super(TimeOverride, self).setUp()
226
-        timeutils.set_time_override()
227
-        self.addCleanup(timeutils.clear_time_override)

Loading…
Cancel
Save