We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a6070 commit b450c69Copy full SHA for b450c69
tests/conftest.py
@@ -1,3 +1,4 @@
1
+import os
2
import tempfile
3
import uuid
4
@@ -35,6 +36,9 @@ def django_db_setup(django_db_setup, django_db_blocker):
35
36
qn = connection.ops.quote_name
37
38
with tempfile.TemporaryDirectory() as temp_dir:
39
+ if not os.path.exists(temp_dir):
40
+ os.makedirs(temp_dir)
41
+
42
with connection.cursor() as cursor:
43
cursor.execute(
44
f"CREATE TABLESPACE {qn(custom_tablespace_name)} LOCATION %s",
0 commit comments