Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tests: Remove ignored parameters from push notifications tests.

Lauryn Menard2615eacca568
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index 73db1e229b0..b993d9d083a 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -522,9 +522,7 @@ class PushBouncerNotificationTest(BouncerTestCase):
# Remove tokens
for endpoint, token, kind in endpoints:
- result = self.client_delete(
- endpoint, {"token": token, "token_kind": kind}, subdomain="zulip"
- )
+ result = self.client_delete(endpoint, {"token": token}, subdomain="zulip")
self.assert_json_success(result)
tokens = list(
RemotePushDeviceToken.objects.filter(
@@ -2567,10 +2565,7 @@ class PushBouncerSignupTest(ZulipTestCase):
self.assertEqual(server.hostname, "example.com")
self.assertEqual(server.contact_email, "[email protected]")
- request = dict(zulip_org_id=zulip_org_id, zulip_org_key=zulip_org_key)
- result = self.uuid_post(
- zulip_org_id, "/api/v1/remotes/server/deactivate", request, subdomain=""
- )
+ result = self.uuid_post(zulip_org_id, "/api/v1/remotes/server/deactivate", subdomain="")
self.assert_json_success(result)
server = RemoteZulipServer.objects.get(uuid=zulip_org_id)