new core.runner helper to avoid local caching issues w. coverage tests; .settings, apps.dash.tests.ITs.test_wallet_views updated accordingly
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -14,8 +14,6 @@ from pathlib import Path
|
||||
import dj_database_url
|
||||
import os
|
||||
import sys
|
||||
if 'test' in sys.argv:
|
||||
COMPRESS_ENABLED = False
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
@@ -206,3 +204,11 @@ MAILGUN_DOMAIN = "howdy.earthmanrpg.com" # Your Mailgun domain
|
||||
# Stripe payment settings
|
||||
STRIPE_PUBLISHABLE_KEY = os.environ.get("STRIPE_PUBLISHABLE_KEY", "")
|
||||
STRIPE_SECRET_KEY = os.environ.get("STRIPE_SECRET_KEY", "")
|
||||
|
||||
if 'test' in sys.argv:
|
||||
import shutil
|
||||
_cache_dir = BASE_DIR / 'static' / 'CACHE'
|
||||
if _cache_dir.exists():
|
||||
shutil.rmtree(_cache_dir, ignore_errors=True)
|
||||
COMPRESS_CACHE_BACKEND = 'default'
|
||||
TEST_RUNNER = 'core.runner.RobustCompressorTestRunner'
|
||||
|
||||
Reference in New Issue
Block a user