From 10edd0e04571842c0991e2d9cbf83cb26b3960f6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 26 Apr 2018 21:14:39 +0300 Subject: Add: action: git --- ick2/actions_tests.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ick2/actions_tests.py') diff --git a/ick2/actions_tests.py b/ick2/actions_tests.py index 8220fe2..06c07f5 100644 --- a/ick2/actions_tests.py +++ b/ick2/actions_tests.py @@ -123,7 +123,7 @@ class ActionFactoryTests(unittest.TestCase): self.assertTrue(isinstance(action, ick2.ArchiveWorkspaceAction)) self.assertTrue(isinstance(action.get_env(), ick2.HostEnvironment)) - def test_creates_populate_sysgtre_action_on_host(self): + def test_creates_populate_systree_action_on_host(self): spec = { 'action': 'populate_systree', } @@ -131,6 +131,14 @@ class ActionFactoryTests(unittest.TestCase): self.assertTrue(isinstance(action, ick2.PopulateSystreeAction)) self.assertTrue(isinstance(action.get_env(), ick2.HostEnvironment)) + def test_creates_git_action_on_host(self): + spec = { + 'action': 'git', + } + action = self.af.create_action(spec, self.project) + self.assertTrue(isinstance(action, ick2.GitAction)) + self.assertTrue(isinstance(action.get_env(), ick2.HostEnvironment)) + def test_raises_exception_for_unknown_step(self): with self.assertRaises(ick2.UnknownStepError): self.af.create_action({}, self.project) -- cgit v1.2.1