mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #20603 -- Made the test suite faster.
By avoiding to run syncdb with the full set of test models. Thanks Anssi for the idea.
This commit is contained in:
@@ -55,6 +55,11 @@ signals.pre_syncdb.connect(pre_syncdb_receiver, sender=models)
|
||||
|
||||
|
||||
class SyncdbSignalTests(TestCase):
|
||||
|
||||
available_apps = [
|
||||
'syncdb_signals',
|
||||
]
|
||||
|
||||
def test_pre_syncdb_call_time(self):
|
||||
self.assertEqual(pre_syncdb_receiver.call_counter, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user