Commit 3cc735da authored by LETORT Sebastien's avatar LETORT Sebastien

close #348

define an alternative datastore in tmp dir, it is created for the test and destroy at the end.
parent 478319c5
Pipeline #99717 passed with stages
in 4 minutes
......@@ -6,6 +6,7 @@
import logging
from shutil import rmtree
from os import makedirs
from tempfile import mkdtemp
import json
from django.conf import settings
......@@ -41,6 +42,7 @@ class ApiJobsTestCase(TestCase):
@classmethod
def setUpTestData(cls):
log.info(":> AJ.setUpTestData.")
settings.DATASTORE = mkdtemp(prefix="api_test_datastore")
populate_db.with_vitals()
usernames = [cls.USERNAME, cls.NEMO]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment