Browse Source

#453: test misagodbrelations

Rafał Pitoń 10 years ago
parent
commit
71e8bdc49e
1 changed files with 12 additions and 0 deletions
  1. 12 0
      misago/core/tests/test_misagodbrelations.py

+ 12 - 0
misago/core/tests/test_misagodbrelations.py

@@ -0,0 +1,12 @@
+from django.test import TestCase
+from django.utils.six import StringIO
+
+from misago.core.management.commands import misagodbrelations
+
+
+class MisagoDBRelationsTests(TestCase):
+    def test_command_has_no_errors(self):
+        """command raises no errors during execution"""
+        command = misagodbrelations.Command()
+
+        command.execute(stdout=StringIO())