Files
deb-python-pysaml2/tests/pathutils.py
Lorenzo Gil Sanchez 49d563618a Allow running the tests inside the tests directory
This fix a regression after latest changes. In order
to run the tests from the tests directory you will
need to install the test_requires packages manually.
You can do so with a single command:

python setup.py develop easy_install pysaml2[testing]

That's why I restored the old extras_requires argument
to the setup function. Now it won't duplicate package
names but reuse the same ones as in test_requires.
2013-04-02 17:53:23 +02:00

27 lines
495 B
Python

import os.path
BASEDIR = os.path.abspath(os.path.dirname(__file__))
def full_path(local_file):
return os.path.join(BASEDIR, local_file)
def dotname(module):
if not BASEDIR.endswith('tests'):
return 'tests.' + module
else:
return module
try:
from saml2.sigver import get_xmlsec_binary
except ImportError:
get_xmlsec_binary = None
if get_xmlsec_binary:
xmlsec_path = get_xmlsec_binary(["/opt/local/bin"])
else:
xmlsec_path = '/usr/bin/xmlsec1'