authentik.api.tests.test_config

Test config API

 1"""Test config API"""
 2
 3from json import loads
 4
 5from django.urls import reverse
 6from rest_framework.test import APITestCase
 7
 8
 9class TestConfig(APITestCase):
10    """Test config API"""
11
12    def test_config(self):
13        """Test YAML generation"""
14        response = self.client.get(
15            reverse("authentik_api:config"),
16        )
17        self.assertTrue(loads(response.content.decode()))
class TestConfig(rest_framework.test.APITestCase):
10class TestConfig(APITestCase):
11    """Test config API"""
12
13    def test_config(self):
14        """Test YAML generation"""
15        response = self.client.get(
16            reverse("authentik_api:config"),
17        )
18        self.assertTrue(loads(response.content.decode()))

Test config API

def test_config(self):
13    def test_config(self):
14        """Test YAML generation"""
15        response = self.client.get(
16            reverse("authentik_api:config"),
17        )
18        self.assertTrue(loads(response.content.decode()))

Test YAML generation