Prechádzať zdrojové kódy

changed the teardown method in test_howdoi.py

Eyitayo Ogunbiyi 4 rokov pred
rodič
commit
8e28e2aaf7
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      test_howdoi.py

+ 2 - 1
test_howdoi.py

@@ -54,7 +54,8 @@ class HowdoiTestCase(unittest.TestCase):
         self.assertTrue(len(res) > 0)
 
     def tearDown(self):
-        time.sleep(2)
+        os.environ['HOWDOI_URL'] = ''
+        os.environ['HOWDOI_SEARCH_ENGINE'] = ''
 
     def test_get_link_at_pos(self):
         self.assertEqual(howdoi.get_link_at_pos(['/questions/42/'], 1),