Skip to content

Commit 92976d7

Browse files
committed
Allow running only one specific test with quicktest.py
1 parent 7e909b0 commit 92976d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quicktest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ def run_tests(self):
5555
'NAME': os.path.join(self.DIRNAME, 'database.db'),
5656
}
5757
}
58+
apps = list(set(app.split(".")[0] for app in self.apps))
5859
conf = {
5960
'DATABASES': databases,
6061
'DEFAULT_AUTO_FIELD': 'django.db.models.BigAutoField',
61-
'INSTALLED_APPS': self.INSTALLED_APPS + self.apps,
62+
'INSTALLED_APPS': self.INSTALLED_APPS + apps,
6263
'STATIC_URL': '/static/',
6364
'MIDDLEWARE': [
6465
'django.contrib.auth.middleware.AuthenticationMiddleware',

0 commit comments

Comments
 (0)