Pytest Parametrize | Testing your Python code

Опубликовано: 18 Май 2022
на канале: jobstr
271
5

Using another leetcode problem as an example I show how you can test your Python code with multiple arguments and results in Pytest aka Parametrizing tests.

The time you save testing it outweighs the time to write it, so automate as much of the tests as you can!

-- chapters --
00:00 intro
01:34 leetcode problem
03:52 2 for loops
05:06 pytest
10:00 folder structure
17:01 another solution
19:30 pytest documentation
----------------------------------------------------------
See : https://docs.pytest.org/en/6.2.x/exam...

Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! 👍

🌏 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

Thumbs up yeah? (cos Algos..)

-------------------------------------------------------------------------
You can buy bitcoin here 👍👍👍
🌏 https://www.swanbitcoin.com/python360
get $10 in BTC when you join Swan !!
--------------------------------------------------------------------------

👍 Become a patron 👍
🌏   / drpi  

Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi

python for beginners

#pytest #parametrize #python


На этой странице сайта вы можете посмотреть видео онлайн Pytest Parametrize | Testing your Python code длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь jobstr 18 Май 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 271 раз и оно понравилось 5 зрителям. Приятного просмотра!