mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 08:15:18 +00:00
tests: Fix package install/import ordering issues
This commit is contained in:
parent
dbbcec6d64
commit
a790df593e
@ -6,7 +6,7 @@ env:
|
|||||||
after_success:
|
after_success:
|
||||||
- codecov
|
- codecov
|
||||||
script:
|
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 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 mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04
|
||||||
- sudo easy_install3 pip
|
- sudo easy_install3 pip
|
||||||
|
@ -14,7 +14,6 @@ from certidude import config, const
|
|||||||
logger = logging.getLogger("api")
|
logger = logging.getLogger("api")
|
||||||
|
|
||||||
def authenticate(optional=False):
|
def authenticate(optional=False):
|
||||||
import falcon
|
|
||||||
def wrapper(func):
|
def wrapper(func):
|
||||||
def kerberos_authenticate(resource, req, resp, *args, **kwargs):
|
def kerberos_authenticate(resource, req, resp, *args, **kwargs):
|
||||||
# Try pre-emptive authentication
|
# Try pre-emptive authentication
|
||||||
|
Loading…
Reference in New Issue
Block a user