mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Forcibly delete ELASTICSEARCH_URL from environment to skip those tests unless --elasticsearch specified
Conflicts: runtests.py
This commit is contained in:
parent
e3fbe06f81
commit
a171cb0743
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ def runtests():
|
|||
if '--elasticsearch' in args:
|
||||
os.environ.setdefault('ELASTICSEARCH_URL', 'http://localhost:9200')
|
||||
args.remove('--elasticsearch')
|
||||
elif 'ELASTICSEARCH_URL' in os.environ:
|
||||
# forcibly delete the ELASTICSEARCH_URL setting to skip those tests
|
||||
del os.environ['ELASTICSEARCH_URL']
|
||||
|
||||
argv = sys.argv[:1] + ['test'] + args
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue