You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Get a list of all testing directoriessearch_paths= [
abspath(arg) forarginconfig.argsifisdir(arg)
]
injected_attr=parse_attribute_injection(
injection_file,
search_paths=search_paths
)
In this case only arguments that are directory are considered for the search path. But if we pass a single test as an argument pytest ... test/test_my.py then it will never be injected. In this case, we could also do:
In this case injection is basically broken unless we call the topology executable from where do we expect the root be, as the default search_paths is used (cwd).
In this case too, we could get the search path from the input:
pytest plugin
Relevant lines are:
topology/lib/topology/pytest/plugin.py
Line 266 in f323846
In this case only arguments that are directory are considered for the search path. But if we pass a single test as an argument
pytest ... test/test_my.py
then it will never be injected. In this case, we could also do:Executable
Relevant lines are:
topology/lib/topology/main.py
Line 62 in f323846
In this case injection is basically broken unless we call the
topology
executable from where do we expect the root be, as the defaultsearch_paths
is used (cwd).In this case too, we could get the search path from the input:
What do you think?
The text was updated successfully, but these errors were encountered: