Skip to content
Myr

use custom tox file named tox-flask-test.ini, dont delete the real tox.ini

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ronny Pfannschmidt · committed by Armin Ronacher · parent 3561a39 · Browse files · 1 file+3 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−5 removed

  • tests:+3 added−5 removed

1 file+3 added−5 removed

modified:tests/flaskext_test.py+3 added-5 removed
207 unmodified lines
208"""209210211def create_tox_ini(checkout_path, interpreters, flask_dep):212 tox_path = os.path.join(checkout_path, 'tox.ini')212 tox_path = os.path.join(checkout_path, 'tox-flask-test.ini')213 if not os.path.exists(tox_path):214 with open(tox_path, 'w') as f:215 f.write(tox_template % {216 'env': ','.join(interpreters),217 'cache': tdir,218 'deps': flask_dep219 })220 return tox_path221222223def iter_extensions(only_approved=True):224 for ext in fetch_extensions_list():
19 unmodified lines
244245 # if there is a tox.ini, remove it, it will cause troubles246 # for us. Remove it if present, we are running tox ourselves247 # afterall.247 toxini = os.path.join(checkout_path, 'tox.ini')248 if os.path.isfile(toxini):249 os.remove(toxini)248249 create_tox_ini(checkout_path, interpreters, flask_dep)252 rv = subprocess.call(['tox'], cwd=checkout_path)250 rv = subprocess.call(['tox', '-c', 'tox-flask-test.ini'], cwd=checkout_path)251 return TestResult(name, checkout_path, rv, interpreters)252253254def run_tests(extensions, interpreters):
57 unmodified lines