Пример #1
0
 def recreate(self):
     db.db_drop()
     db.db_create()
     envutils.clear_env()
Пример #2
0
 def recreate(self):
     db.db_drop()
     db.db_create()
     envutils.clear_env()
Пример #3
0
 def test_clear_env(self, mock_file, mock_file_status):
     envutils.clear_env()
     self.assertEqual(os.environ, {})
Пример #4
0
 def test_clear_env(self, mock_file, mock_file_status):
     envutils.clear_env()
     self.assertEqual(os.environ, {})
Пример #5
0
 def test_clear_env(self, mock_file, mock_file_status):
     mock_file_status.return_value = True
     envutils.clear_env()
     self.assertEqual(os.environ, {})
Пример #6
0
 def test_clear_env(self, mock_file, mock_file_status):
     mock_file_status.return_value = True
     envutils.clear_env()
     self.assertEqual(os.environ, {})