takahe/tests/api/test_apps.py

14 lines
301 B
Python
Raw Normal View History

2023-02-19 18:37:02 +00:00
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"