takahe/tests/api/test_apps.py
2023-03-09 10:47:33 -07:00

11 lines
333 B
Python

import pytest
@pytest.mark.django_db
def test_create(api_client):
"""
Tests creating an app with mixed query/body params (some clients do this)
"""
response = api_client.post("/api/v1/apps?client_name=test", {"redirect_uris": ""})
assert response.status_code == 200
assert response.json()["name"] == "test"