Skip to content

Commit

Permalink
chore: code clean up
Browse files Browse the repository at this point in the history
Signed-off-by: paullongtan <paullongtan@gmail.com>
  • Loading branch information
paullongtan committed Jan 2, 2025
1 parent 9bba92f commit f1be205
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/flytekit/unit/cli/pyflyte/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ def test_register_summary_dir_without_format(mock_client, mock_remote):
f.close()
result = runner.invoke(pyflyte.main, ["register", "--summary-dir", "summaries", "core4"])
assert result.exit_code == 2
print(result.output)
assert "--summary-format is a required parameter when --summary-dir is specified" in result.output

shutil.rmtree("core4")

Expand Down Expand Up @@ -231,8 +229,5 @@ def test_register_registrated_summary_json(mock_client, mock_remote):
assert "version" in entry
assert "status" in entry

# Ensure cleanup happens even if test fails
if os.path.exists("core5"):
shutil.rmtree("core5")
if os.path.exists("summaries"):
shutil.rmtree("summaries")
shutil.rmtree("core5")
shutil.rmtree("summaries")

0 comments on commit f1be205

Please sign in to comment.