From a790df593e505c63ea9a801d4532410a534fa63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 10 Apr 2018 10:05:08 +0000 Subject: [PATCH] tests: Fix package install/import ordering issues --- .travis.yml | 2 +- certidude/auth.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 81b41dc..1f823c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ env: after_success: - codecov script: - - sudo npm config set registry=http://registry.npmjs.org/ + - echo registry=http://registry.npmjs.org/ | sudo tee /root/.npmrc - sudo apt install software-properties-common python3-setuptools python3-mysql.connector python3-pyxattr - sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04 - sudo easy_install3 pip diff --git a/certidude/auth.py b/certidude/auth.py index e0abc4e..d4c9a1c 100644 --- a/certidude/auth.py +++ b/certidude/auth.py @@ -14,7 +14,6 @@ from certidude import config, const logger = logging.getLogger("api") def authenticate(optional=False): - import falcon def wrapper(func): def kerberos_authenticate(resource, req, resp, *args, **kwargs): # Try pre-emptive authentication