takahe/tests/api/test_apps.py

12 lines
333 B
Python
Raw Normal View History

2023-02-19 10:37:02 -08:00
import pytest
@pytest.mark.django_db
def test_create(api_client):
"""
2023-03-09 09:47:33 -08:00
Tests creating an app with mixed query/body params (some clients do this)
2023-02-19 10:37:02 -08:00
"""
2023-03-09 09:47:33 -08:00
response = api_client.post("/api/v1/apps?client_name=test", {"redirect_uris": ""})
2023-02-19 10:37:02 -08:00
assert response.status_code == 200
assert response.json()["name"] == "test"