Комментарии:
whats with the keyboard view?
Ответитьflask app is dockerized. Uses rq worker, redis, postgres as compose services. How should one thing about testing such application?
ОтветитьI never knew there was a name to call how you name your variables:
camelCase
snake_case
PascalCase
kebab-case
great video, do u have any idea on best way to configure test data for different environments (dev, staging etc) in pytest?
ОтветитьHow does the "you forgot to activate ./venv -- I gotchu" work?! I need that in my life 😂
ОтветитьI've heard about this great tool, pre-commit. It's from this really cool guy, you should definitely give it a try *wink*.
It would be nice to have a "getting started with pre-commit".
Awesome video! can we also have a video on Mock, patching, monkey patch..etc please!
ОтветитьGreat video!
I've quickly tested some time ago unittest from python and I found out that writing assertion keyword is not strictly prohibited, maaaaybeee they changed something? I don't know. But pytest is by far most useful 3rd party tool downloadable from PIP! Thanks for sharing this tutorial!
I honestly prefer unittest. It is just nice to have it integrated in the language. Other than that I don't use it very differently from how you use pytest in this video.
ОтветитьThanks for the video! Many of your repos have testing directory, what do you store there? A code that is related for tests but you keep it separate because tests directory should contain only tests? Or my guess is wrong
ОтветитьThanks!
Ответить-v{1,3} is also very helpful when tests with a more complex comparison fail, e.g. long strings, lists/tuples/dicts with many items. It shows you exactly where the difference occurred, what item is missing etc.
It helps me a lot breaking this down
Thanks for the video!
It would be helpful to get a more advanced follow up video about fixtures, patches and so on :)
Nice video, just checked I was sure unit test wasn’t in Python 1. Python predates junit by about 7 years and unit test was inspired by junit. python
20 February 1991. JUnit was born on a flight from Zurich to the 1997 OOPSLA in Atlanta.
TIL about -s for print debugging an incorrectly passing test. I've normally just gone with the tried and true 1 / 0 in the test if it comes to that. haha
The plugins certainly make the tool shine brighter than it already does. Off the top of my head, pytest-randomly and pytest-repeat are two I use regularly to shake out and expose tricky pollution.
Why all files of pyupgrade starts with _?
ОтветитьDidn't know that including __init__.py would resolve name collisions - thanks!
ОтветитьI assume the `-s` and suppression of I/O extends to the code not only in the test file (t_test.py) but also the original file (t.py)?
ОтветитьOne of the top python packages! 🙂
Ответить😁
Ответить