https://pantsbuild.org/ logo
#general
Title
# general
p

proud-dentist-22844

12/14/2022, 10:12 PM
I have the
[pylint].source_plugins
in a separate resolve from the rest of the code. That has been working very nicely. When I run pylint, the venv includes pylint, the source_plugins, and the code that pylint is inspecting. So far so good. But, now I want to test code in my source_plugins directory, and 💥. For my “fixtures” I have the test write a dummy python file from a string to a temporary directory. That dummy file imports a module that is in a different resolve. If I were running pylint, this module would be part of the code that pylint inspects, which works just fine. For testing, how do I make that module available to import during the test?
h

hundreds-father-404

12/14/2022, 10:22 PM
resolve=parametrize("resolve1", "resolve2")
on the target that defines that fixture
2 Views