diff -r 67b28bd4505d tests/runtests.py
a
|
b
|
|
21 | 21 | MODEL_TEST_DIR = os.path.join(os.path.dirname(__file__), MODEL_TESTS_DIR_NAME) |
22 | 22 | REGRESSION_TEST_DIR = os.path.join(os.path.dirname(__file__), REGRESSION_TESTS_DIR_NAME) |
23 | 23 | |
| 24 | REGRESSION_SUBDIRS_TO_SKIP = ['locale'] |
| 25 | |
24 | 26 | ALWAYS_INSTALLED_APPS = [ |
25 | 27 | 'django.contrib.contenttypes', |
26 | 28 | 'django.contrib.auth', |
… |
… |
|
37 | 39 | models = [] |
38 | 40 | for loc, dirpath in (MODEL_TESTS_DIR_NAME, MODEL_TEST_DIR), (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR), (CONTRIB_DIR_NAME, CONTRIB_DIR): |
39 | 41 | for f in os.listdir(dirpath): |
40 | | if f.startswith('__init__') or f.startswith('.') or f.startswith('sql') or f.startswith('invalid'): |
| 42 | if f.startswith('__init__') or f.startswith('.') or \ |
| 43 | f.startswith('sql') or f.startswith('invalid') or \ |
| 44 | os.path.basename(f) in REGRESSION_SUBDIRS_TO_SKIP: |
41 | 45 | continue |
42 | 46 | models.append((loc, f)) |
43 | 47 | return models |