freeipa/ipatests/test_ipalib
Christian Heimes 13c3997baa Fix detection logic for api.env.in_tree
The logic to detect in-tree builds was broken and ipatests/conftest.py
had hard-coded in_tree=True.

IPA now considers an environment as in-tree when the parent directory of
the ``ipalib`` package contains ``ipasetup.py.in``. This file is only
present in source and never installed.

API bootstrap() does not use ```self.site_packages in site.getsitepackages()``
because the function call can be expensive and would require path
normalization, too. The function is also missing from venv site module.

Fixes: https://pagure.io/freeipa/issue/8312
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2020-05-14 18:16:20 +02:00
..
data test_text: add test ipa.pot file for tests 2016-09-26 18:48:07 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_aci.py Handle subyptes in ACIs 2018-06-20 08:38:03 +02:00
test_backend.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_base.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_capabilities.py Applied tier0 and tier1 marks on unit tests and xmlrpc tests 2015-11-09 11:49:17 +01:00
test_cli.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_config.py Fix detection logic for api.env.in_tree 2020-05-14 18:16:20 +02:00
test_crud.py Remove unused variables in tests 2016-09-27 13:35:58 +02:00
test_errors.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_frontend.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_messages.py Tests: Add data attribute to messages 2016-08-16 11:56:49 +02:00
test_output.py Generate same API.txt under Python 2 and 3 2018-02-15 09:41:30 +01:00
test_parameters.py Fix E721 do not compare types, use 'isinstance()' 2020-05-05 10:42:46 +02:00
test_plugable.py Remove deprecated object logger 2019-04-23 12:55:35 +02:00
test_rpc.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_text.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_util.py Add skip_if_platform marker 2020-04-28 15:33:57 +02:00
test_x509.py move MSCSTemplate classes to ipalib 2019-07-17 17:58:58 +03:00