Merge pull request #856 from kay0u/fix-test-app-failed-upgrade

fix test_failed_multiple_app_upgrade
This commit is contained in:
Alexandre Aubin 2019-11-29 15:20:48 +01:00 committed by GitHub
commit fea733ce31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,7 +338,8 @@ def test_failed_multiple_app_upgrade(mocker, secondary_domain):
install_legacy_app(secondary_domain, "/legacy")
install_break_yo_system(secondary_domain, breakwhat="upgrade")
with raiseYunohostError(mocker, 'app_not_upgraded'):
with pytest.raises(YunohostError):
with message(mocker, "app_not_upgraded"):
app_upgrade(["break_yo_system", "legacy_app"],
file={"break_yo_system": "./tests/apps/break_yo_system_ynh",
"legacy": "./tests/apps/legacy_app_ynh"})