def test_from_force_command_argument(self):
     known_args = Mock(force_command=["git", "brunch"])
     assert _get_raw_command(known_args) == ["git", "brunch"]
 def test_from_command_argument(self, os_environ):
     os_environ["TF_HISTORY"] = None
     known_args = Mock(force_command=None, command=["sl"])
     assert _get_raw_command(known_args) == ["sl"]
 def test_from_history(self, os_environ, history, result):
     os_environ["TF_HISTORY"] = history
     known_args = Mock(force_command=None, command=None)
     assert _get_raw_command(known_args) == [result]
Example #4
0
 def test_from_force_command_argument(self):
     known_args = Mock(force_command='git brunch')
     assert _get_raw_command(known_args) == ['git brunch']