Needing to reload Pythonista to get pytest to update code.
I'm trying the get pytest working and I keep getting a no module named py error. I'm guessing there is a py.test but I can't seem to find it in the package.
Scratch that, needed the py module.
I've been playing around with pytest and it's great. However I have to reload pythonista whenever I make a change to the test or my module. I've tried reloading pytest, my test module and my module without any luck. Any ideas?
JadedTuna last edited by
@briarfox, Ole said that in the new update (1.5), user-created scripts will be automatically reloaded. I think it will solve your problem :)
@ShadowSlayer Just updated and kept the modules out of site-packages (to enable reloading) and I still need to reload pythonista for pytest to register changes to the code. I'd really like to start using pytest but it gets tiring having to remember to reload pythonista.
ccc last edited by
Have you tried:
import my_module reload(my_module)