Skip to content

Commit 636f08a

Browse files
committed
move ephermal files to workdir
1 parent 65397bd commit 636f08a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ jobs:
5959
done
6060
- name: Test with pytest
6161
run: |
62+
mkdir -p workdir
6263
python -m pytest testapp

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*.pot
44
*.pyc
55
*.egg-info
6-
*.sqlite3
76
*.coverage
87
*.tsbuildinfo
98
*~
@@ -17,6 +16,7 @@ build
1716
docs/_build
1817
dist
1918
node_modules/
19+
workdir/*
2020
htmlcov
2121
adminsortable2/static/adminsortable2/js/adminsortable2.*
2222
adminsortable2/templates/adminsortable2/edit_inline

testapp/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
DATABASES = {
2323
'default': {
2424
'ENGINE': 'django.db.backends.sqlite3',
25-
'NAME': Path(__file__).parent / 'demo.sqlite3',
25+
'NAME': Path(__file__).parent.parent / 'workdir/demo.sqlite3',
2626
'TEST': {
27-
'NAME': Path(__file__).parent / 'test.sqlite3', # live_server requires a file rather than :memory:
27+
'NAME': Path(__file__).parent.parent / 'workdir/test.sqlite3', # live_server requires a file rather than :memory:
2828
'OPTIONS': {
2929
'timeout': 20,
3030
},

0 commit comments

Comments
 (0)