Skip to content

Commit f6e0771

Browse files
committed
Attempt to reduce time of running tests
1 parent f449856 commit f6e0771

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

networkapi/settings_ci.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
from settings import CONFIG_FILES_PATH
4242
from settings import CONFIG_FILES_REL_PATH
4343
from settings import CONFIG_TEMPLATE_PATH
44-
from settings import DATABASES
4544
from settings import DEBUG
4645
from settings import DEFAULT_CHARSET
4746
from settings import DIVISAODC_MGMT
@@ -290,3 +289,14 @@
290289
# '--cover-xml',
291290
# '--cover-xml-file=coverage.xml'
292291
]
292+
293+
# Use SQLite in-memory for faster tests
294+
DATABASES = {
295+
'default': {
296+
'ENGINE': 'django.db.backends.sqlite3',
297+
'NAME': ':memory:',
298+
}
299+
}
300+
301+
# Disable South migrations for faster test setup
302+
SOUTH_TESTS_MIGRATE = False

0 commit comments

Comments
 (0)