URL: https://github.com/freeipa/freeipa/pull/626 Author: tiran Title: #626: Move helper code for integration plugin Action: edited
Changed field: body Original value: """ fd1b4f6ec9a349196d5df510008c4745f0b1fb84 broke integration tests because the integration helper imports code from ``ipatests.test_integration```. ``` Traceback (most recent call last): File "/usr/bin/ipa-test-config", line 30, in <module> from ipatests.test_integration import config, env_config File "/usr/lib/python2.7/site-packages/ipatests/test_integration/__init__.py", line 22, in <module> if pytest.config.getoption('ipaclient_unittests', False): AttributeError: 'module' object has no attribute 'config' ``` Helper code for ```ipatests.pytest_plugins.integration``` was in ```ipatests.test_integration```. This doesn't play nice with pytests auto-discovery of test cases. Certain aspects of pytest are not available right away. For example ```pytest.config``` is generated after configuration stage but before discovery stage. Now all helper code is next to the plugin in ```ipatests.pytest_plugins.integration``` (which is now a package). """
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code