ployground / ploy_ansible

Plugin to integrate Ansible with ploy.
5 stars 4 forks source link

Serveral tests fail due to (pytest 4.x?) changes #20

Open koobs opened 5 years ago

koobs commented 5 years ago

Several tests fail with the same error in ploy_ansible/conftest.py:

platform freebsd13 -- Python 2.7.16, pytest-4.5.0, py-1.8.0, pluggy-0.11.0
rootdir: /usr/home/koobs/repos/freebsd/ports/sysutils/py-ploy_ansible/work-py27/ploy_ansible-1.4.1
plugins: xdist-1.28.0, mock-1.10.4, forked-1.0.2

caplog = <_pytest.logging.LogCaptureFixture object at 0x805e29450>

    @pytest.fixture
    def caplog(caplog):
        def messages(self, level=logging.INFO):
            return [
                x.message
                for x in self.records
                if x.levelno >= level]
>       caplog.messages = messages.__get__(caplog, caplog.__class__)
E       AttributeError: can't set attribute

ploy_ansible/conftest.py:16: AttributeError