diff --git a/tests/app_version_higher.py b/tests/app_version_higher.py index 5497d55e..0d0abea9 100644 --- a/tests/app_version_higher.py +++ b/tests/app_version_higher.py @@ -10,17 +10,17 @@ if __name__ == "__main__": nc_application = NextcloudApp(user="admin") assert nc_application.users.get_details() # OCS call works - assert not nc_application.users.notifications.get_all() # there are no notifications + 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 AppEcosystem assert exc_info.value.status_code == 401 assert nc_client.apps.ex_app_is_disabled("nc_py_api") is True - notifications = nc_client.users.notifications.get_all() + notifications = nc_client.notifications.get_all() notification = [i for i in notifications if i.object_type == "ex_app_update"] assert len(notification) == 1 # only one notification for each admin nc_client = Nextcloud(nc_auth_user="second_admin", nc_auth_pass="2Very3Strong4") - notifications = nc_client.users.notifications.get_all() + notifications = nc_client.notifications.get_all() notification = [i for i in notifications if i.object_type == "ex_app_update"] assert len(notification) == 1 # only one notification for each admin