Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3cc735da authored by LETORT Sebastien's avatar LETORT Sebastien
Browse files

close #348

define an alternative datastore in tmp dir, it is created for the test and destroy at the end.
parent 478319c5
No related branches found
No related tags found
1 merge request!164Api job test
Pipeline #99717 passed with warnings
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment