예제 #1
0
 def test_get_endpoint_noauth(self): tools.assure_noauth(noauth_client.get(tools.generate_guildapi_path() + "config/general"))
 def test_get_endpoint(self):
예제 #2
0
 def test_endpoint_noauth(self): tools.assure_noauth(noauth_client.get("/api/guilds/"))
 def test_endpoint(self):
예제 #3
0
 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
예제 #4
0
 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):
예제 #5
0
 def test_whoami_noauth(self):
     tools.assure_noauth(noauth_client.get("/api/whoami"))
예제 #6
0
 def test_logout_noauth(self):
     tools.assure_noauth(noauth_client.get("/api/logout"))