From 8d0078e352b4d1cd7deaa99c98acb17aebe6976a Mon Sep 17 00:00:00 2001 From: Ed Thome Date: Tue, 21 Oct 2014 13:57:10 -0500 Subject: [PATCH] Cam & Ed | Fix skipped tests to use new environment variable --- tests/test_ec2driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_ec2driver.py b/tests/test_ec2driver.py index e688920..81fc445 100644 --- a/tests/test_ec2driver.py +++ b/tests/test_ec2driver.py @@ -179,7 +179,7 @@ class EC2DriverTest(unittest.TestCase): self.assertEqual(ip_before_resize.public_ip, ip_after_resize.public_ip) - @unittest.skipIf(os.environ.get('TEST'), 'Not supported by moto') + @unittest.skipIf(os.environ.get('MOCK_EC2'), 'Not supported by moto') def test_user_data(self): """To test the spawn method by providing a file user_data for config drive. Will bring up a LAMP server. @@ -210,7 +210,7 @@ class EC2DriverTest(unittest.TestCase): print raw_response self.assertEqual(raw_response.code, 200) - @unittest.skipIf(os.environ.get('TEST'), 'Not supported by moto') + @unittest.skipIf(os.environ.get('MOCK_EC2'), 'Not supported by moto') def test_diagnostics(self): print "******* Diagnostics Test ***********" instance, instance_ref = self.spawn_ec2_instance()