What are pytest best practices?
python - Using pytest as test runner while preventing it from modifying test code - Stack Overflow
How many of you use unittest/pytest?
pytest vs unittest?
Factsheet
I am fairly new to python, and made a career switch where 99% of my day-to-day involves python in some regard.
After reading through pytest documentation, then seeing how unit tests are implemented at work, I'm not super sure if they're up to par with best practices or not. Would anyone be able to take a look at this code and explain how this works (or doesn't) with pytest/provide resources or code examples on best practices?
Here's the pseudo code, similar to what I work with:
```
from parent_package import some_python_script
some_python_script.main(dry_run=True)
```
Then I'd run pytest via cli....
Should there be an assertion? Conditions? ETC.