Skip to content

integration-test target broken due to pytest 7.3.1 behavior change related to testpaths config #4183

@blackboxsw

Description

@blackboxsw

Bug report

pytest 7.3.2 changed treatment of testpaths to now always load conftest from the tox configured testpaths. this breaks our integration-tests because our configured testpaths in tox.ini points to tests/unittests which carries with it a dependency on responses that is unneeded for our integration-tests target. This behavior breaks all of our jenkins test runners which don't need to express responses as a dependency.

This issue is known in pytest issue: #11104 and will likely be reverted in the coming week and introduced as a separate config feature in a major release.

Steps to reproduce the problem

tox -e integration-test  # results in a traceback module not found `reponses`

Environment details

cloud-init logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlynewAn issue that still needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions