Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix snapsht test for default manifest case #1524

Merged
merged 2 commits into from
Mar 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/pytest/test_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,14 @@ def test_replace_mar_file_with_dummy():
response = requests.get('http://127.0.0.1:8081/models/')
assert json.loads(response.content)['models'][0]['modelName'] == "densenet161"
except:
assert True, "Correct Model mar file not found"
assert False, "Default manifest does not work"
else:
assert False, "Something is not right!! Successfully started Torchserve with a dummy mar file"
assert True, "Successfully started Torchserve with a dummy mar file (ie. default manifest)"
finally:
test_utils.unregister_model("densenet161")
test_utils.delete_all_snapshots()
test_utils.delete_model_store()
test_utils.stop_torchserve()


def test_restart_torchserve_with_one_of_model_mar_removed():
Expand Down