summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-02-20 23:18:09 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2011-02-20 23:18:09 -0800
commit98c2ef77e6018c0a6233e32ace435fba488175f5 (patch)
treee66c44cc11415a5d860af5cc07e78e6376959230
parent106eb47eff0551c73b2e90385b9c3a910fec8633 (diff)
move the fake initialized into fake flags
-rw-r--r--nova/test.py2
-rw-r--r--nova/tests/fake_flags.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/nova/test.py b/nova/test.py
index a649b4c5f..a12cf9d32 100644
--- a/nova/test.py
+++ b/nova/test.py
@@ -60,8 +60,6 @@ class TestCase(unittest.TestCase):
def setUp(self):
"""Run before each test method to initialize test environment"""
super(TestCase, self).setUp()
- # NOTE(vish): pretend like we've loaded flags from command line
- flags.FlagValues.initialized = True
# NOTE(vish): We need a better method for creating fixtures for tests
# now that we have some required db setup for the system
# to work properly.
diff --git a/nova/tests/fake_flags.py b/nova/tests/fake_flags.py
index 68b14a46e..0a1011d86 100644
--- a/nova/tests/fake_flags.py
+++ b/nova/tests/fake_flags.py
@@ -42,4 +42,5 @@ FLAGS.verbose = True
FLAGS.sql_connection = 'sqlite:///nova.sqlite'
FLAGS.use_ipv6 = True
FLAGS.logfile = 'run_tests.err'
+# NOTE(vish): pretend like we've loaded flags from command line
flags.FlagValues.initialized = True