Skip to content

Commit

Permalink
Improve CLI test
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaslassance committed Oct 14, 2024
1 parent 84b03aa commit 73beaec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ def test_cli(self):
output = f"+------- {untracked_image_01} - - - {host} {user}\n"
self.assertEqual(output, result.output)

result = runner.invoke(cli.claim, [untracked_image_01], obj=obj)
self.assertEqual(0, result.exit_code, result.output)
host = socket.gethostname()
user = getpass.getuser()
output = f"-------- {untracked_image_01} - - - - -\n"
self.assertEqual(output, result.output)

def tearDown(self):
try:
shutil.rmtree(self.temp_dir)
Expand Down

0 comments on commit 73beaec

Please sign in to comment.