
* format files Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix pyright Signed-off-by: Jens Langhammer <jens@goauthentik.io> * revert #8367 Signed-off-by: Jens Langhammer <jens@goauthentik.io> * sigh Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
18 lines
394 B
Python
18 lines
394 B
Python
"""Test config API"""
|
|
|
|
from json import loads
|
|
|
|
from django.urls import reverse
|
|
from rest_framework.test import APITestCase
|
|
|
|
|
|
class TestConfig(APITestCase):
|
|
"""Test config API"""
|
|
|
|
def test_config(self):
|
|
"""Test YAML generation"""
|
|
response = self.client.get(
|
|
reverse("authentik_api:config"),
|
|
)
|
|
self.assertTrue(loads(response.content.decode()))
|