Speed up tests (#638)

This commit is contained in:
thomas girod authored and GitHub committed 2023-05-02 11:00:23 +02:00
1 parent 66fcb76cb5
commit 96dede5077
19 files changed
+191 -200

No files matched your search

+3 -3
View File
@@ -102,9 +102,9 @@ class SubscriptionUnitTest(TestCase):
class SubscriptionIntegrationTest(TestCase):
def setUp(self):
call_command("populate")
self.user = User.objects.filter(username="public").first()
@classmethod
def setUp(cls):
cls.user = User.objects.filter(username="public").first()
def test_duration_one_month(self):
s = Subscription(