diff --git a/tests/app_version_higher.py b/tests/app_version_higher.py index cef43568..bf28f6b7 100644 --- a/tests/app_version_higher.py +++ b/tests/app_version_higher.py @@ -9,11 +9,11 @@ nc_client.users.create("second_admin", password="2Very3Strong4", groups=["admin"]) nc_application = NextcloudApp(user="admin") - assert nc_application.users.get_details() # OCS call works + assert nc_application.users.get_user() # OCS call works assert not nc_application.notifications.get_all() # there are no notifications nc_application._session.adapter.headers.update({"EX-APP-VERSION": "99.0.0"}) # change ExApp version with pytest.raises(NextcloudException) as exc_info: - nc_application.users.get_details() # this call should be rejected by AppAPI + nc_application.users.get_user() # this call should be rejected by AppAPI assert exc_info.value.status_code == 401 assert nc_client.apps.ex_app_is_disabled("nc_py_api") is True