mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-27 01:31:00 +00:00
13 lines
301 B
Python
13 lines
301 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.django_db
|
|
def test_create(api_client):
|
|
"""
|
|
Tests creating an app
|
|
"""
|
|
response = api_client.post(
|
|
"/api/v1/apps", {"client_name": "test", "redirect_uris": ""}
|
|
)
|
|
assert response.status_code == 200
|
|
assert response.json()["name"] == "test"
|