From f0e9bafa3584fc54dbc64d74ef5bf858505a32c0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 15 Nov 2021 16:44:42 +0100 Subject: [PATCH] outposts: add tests for management commands Signed-off-by: Jens Langhammer --- authentik/outposts/tests/test_commands.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 authentik/outposts/tests/test_commands.py diff --git a/authentik/outposts/tests/test_commands.py b/authentik/outposts/tests/test_commands.py new file mode 100644 index 0000000000..9e70e8b024 --- /dev/null +++ b/authentik/outposts/tests/test_commands.py @@ -0,0 +1,15 @@ +"""management command tests""" +from io import StringIO + +from django.core.management import call_command +from django.test import TestCase + + +class TestManagementCommands(TestCase): + """management command tests""" + + def test_repair_permissions(self): + """Test repair_permissions""" + out = StringIO() + call_command("repair_permissions", stdout=out) + self.assertNotEqual(out.getvalue(), "")