Skip to content

Commit f206b3f

Browse files
committed
webscaff LOCAL_RUN detection update
1 parent 666cc9e commit f206b3f

File tree

1 file changed

+2
-1
lines changed
  • src/makeapp/app_templates/webscaff/src/__package_name__/settings

1 file changed

+2
-1
lines changed

src/makeapp/app_templates/webscaff/src/__package_name__/settings/sub_paths.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from pathlib import Path
23

34
BASE_DIR = Path(__file__).absolute().parent.parent
@@ -6,7 +7,7 @@
67
PROJECT_DOMAIN = '{{ webscaff_domain }}'
78

89
PROJECT_DIR_STATE_LOCAL = BASE_DIR.parent / 'state'
9-
LOCAL_RUN = PROJECT_DIR_STATE_LOCAL.exists()
10+
LOCAL_RUN = PROJECT_DIR_STATE_LOCAL.exists() or os.environ.get('PYTEST_VERSION')
1011

1112
if LOCAL_RUN:
1213
PROJECT_DIR_APP = BASE_DIR

0 commit comments

Comments
 (0)