diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..0067159 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +omit = + stw_potsdam/__main__.py diff --git a/stw_potsdam/views.py b/stw_potsdam/views.py index 4152676..8da10e7 100644 --- a/stw_potsdam/views.py +++ b/stw_potsdam/views.py @@ -15,7 +15,7 @@ CACHE_TIMEOUT = 45 * 60 app = Flask(__name__) app.url_map.strict_slashes = False -if 'BASE_URL' in os.environ: +if 'BASE_URL' in os.environ: # pragma: no cover base_url = urlparse.urlparse(os.environ.get('BASE_URL')) if base_url.scheme: app.config['PREFERRED_URL_SCHEME'] = base_url.scheme