Skip to content

Commit 109f28e

Browse files
committed
[tests] Use a different DB for SAMPLE_APP
1 parent a8836ff commit 109f28e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/openwisp2/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@
211211
TEST_RUNNER = "openwisp_utils.tests.TimeLoggingTestRunner"
212212

213213
if os.environ.get("SAMPLE_APP", False):
214+
DATABASES["default"]["NAME"] = os.path.join(
215+
BASE_DIR, "openwisp-controller-SAMPLE_APP.db"
216+
)
214217
# Replace Config
215218
config_index = INSTALLED_APPS.index("openwisp_controller.config")
216219
INSTALLED_APPS.remove("openwisp_controller.config")

0 commit comments

Comments
 (0)