Skip to content

Commit

Permalink
test: Path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
techman83 committed Dec 1, 2024
1 parent f89c2be commit a4bb430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli/test_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ def test_terraform_version(self):
result = CliRunner().invoke(
tf, ['run', 'version', '--environment', 'test', '--service', 'test']
)
self.assertEqual(result.exit_code, 0)
self.assertTrue(result.output.startswith('Terraform v'))
self.assertEqual(result.exit_code, 0)

def test_terraform_error(self):
result = CliRunner().invoke(
tf, ['run', 'invalid-foo', '--environment', 'test', '--service', 'test']
)
self.assertEqual(result.exit_code, 1)
self.assertTrue(
result.output.startswith('Terraform has no command named "invalid-foo".')
)
self.assertEqual(result.exit_code, 1)

0 comments on commit a4bb430

Please sign in to comment.