You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
diff --git a/tests/unit/utils/extend_test.py b/tests/unit/utils/extend_test.py
|
|
index f63a4896f7..54bf443d9a 100644
|
|
--- a/tests/unit/utils/extend_test.py
|
|
+++ b/tests/unit/utils/extend_test.py
|
|
@@ -38,18 +38,6 @@ class ExtendTestCase(TestCase):
|
|
shutil.rmtree(self.out, True)
|
|
os.chdir(self.starting_dir)
|
|
|
|
- @patch('sys.exit', MagicMock)
|
|
- def test_run(self):
|
|
- out = salt.utils.extend.run('test', 'test', 'this description', integration.CODE_DIR, False)
|
|
- self.out = out
|
|
- year = date.today().strftime('%Y')
|
|
- self.assertTrue(os.path.exists(out))
|
|
- self.assertFalse(os.path.exists(os.path.join(out, 'template.yml')))
|
|
- self.assertTrue(os.path.exists(os.path.join(out, 'directory')))
|
|
- self.assertTrue(os.path.exists(os.path.join(out, 'directory', 'test.py')))
|
|
- with salt.utils.fopen(os.path.join(out, 'directory', 'test.py'), 'r') as test_f:
|
|
- self.assertEqual(test_f.read(), year)
|
|
-
|
|
if __name__ == '__main__':
|
|
from unit import run_tests
|
|
run_tests(ExtendTestCase, needs_daemon=False)
|