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
Hi, I basically picked up this library today and while trying ot set up a working example I ran into this:
Basically if I try to run a entry point registered in the project.scripts table of the pyproject.toml file the wiring doesn't happen. This obviously happens because the code that wires the module is inside a if name == "main" conditional. I thought that maybe I could just wire the container in the code of the module that holds the function I run as entrypoint but started wondering if this would affect the tests given that I read that for tests the recommended approach is to create a container fixture. So I'm a bit lost on what to do.