summaryrefslogtreecommitdiff
path: root/ick2/actions_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-04-26 21:14:39 +0300
committerLars Wirzenius <liw@liw.fi>2018-04-27 13:43:46 +0300
commit10edd0e04571842c0991e2d9cbf83cb26b3960f6 (patch)
tree5f9f6f83311a37fa27df5f3e1ddcc95a2a14e5cf /ick2/actions_tests.py
parent36036ada8cdcb3a1222c31e8ce8076a624a09701 (diff)
downloadick2-10edd0e04571842c0991e2d9cbf83cb26b3960f6.tar.gz
Add: action: git
Diffstat (limited to 'ick2/actions_tests.py')
-rw-r--r--ick2/actions_tests.py10
1 files changed, 9 insertions, 1 deletions
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)