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 a4bb430 commit db47ad4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/cli/test_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ def test_terraform_version(self):
result = CliRunner().invoke(
tf, ['run', 'version', '--environment', 'test', '--service', 'test']
)
self.assertTrue(result.output.startswith('Terraform v'))
self.assertEqual(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.assertTrue(
result.output.startswith('Terraform has no command named "invalid-foo".')
self.assertEqual(
result.output.startswith('Terraform has no command named "invalid-foo".'),
'',
)
self.assertEqual(result.exit_code, 1)

0 comments on commit db47ad4

Please sign in to comment.