def test_get_endpoint_noauth(self): tools.assure_noauth(noauth_client.get(tools.generate_guildapi_path() + "config/general")) def test_get_endpoint(self):
def test_endpoint_noauth(self): tools.assure_noauth(noauth_client.get("/api/guilds/")) def test_endpoint(self):
def test_mute_endpoint_noauth(self): tools.assure_noauth(noauth_client.post(tools.generate_guildapi_path() + "mute", json={"test": "bad"})) # See pytest.ini on how to run these tests @pytest.mark.mute
def test_patch_endpoint_noauth(self): tools.assure_noauth(noauth_client.patch(tools.generate_guildapi_path() + "config/general", json=patch_body)) def test_patch_endpoint(self):
def test_whoami_noauth(self): tools.assure_noauth(noauth_client.get("/api/whoami"))
def test_logout_noauth(self): tools.assure_noauth(noauth_client.get("/api/logout"))