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 db47ad4 commit 1fc0e38
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,15 +63,15 @@ def test_terraform_version(self):
result = CliRunner().invoke(
tf, ['run', 'version', '--environment', 'test', '--service', 'test']
)
self.assertEqual(result.output.startswith('Terraform v'), '')
self.assertEqual(result.output, '')
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.output.startswith('Terraform has no command named "invalid-foo".'),
result.output,
'',
)
self.assertEqual(result.exit_code, 1)

0 comments on commit 1fc0e38

Please sign in to comment.