Professional Python Testing with Mocks

Professional Python Testing with Mocks

NeuralNine

10 месяцев назад

37,771 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@allandasantos9680
@allandasantos9680 - 30.11.2023 21:37

Very good. I would like to see more videos about mocks but using magic mock

Ответить
@justmogen7383
@justmogen7383 - 28.10.2023 16:50

the explanation from beginning is awesome mahn! Very concise

Ответить
@mazaheri.pourya
@mazaheri.pourya - 16.10.2023 15:58

that wasn't good example to teach mock 👎

Ответить
@geordiehowell9087
@geordiehowell9087 - 13.10.2023 06:18

such great explanation. thank you

Ответить
@20ted09
@20ted09 - 30.09.2023 14:28

This is now my GO TO channel for python. Absolutely top class tutorials!

Ответить
@JorgeEscobarMX
@JorgeEscobarMX - 04.07.2023 22:24

Most people don't use mocks and they just hope that the database or the internet or whatever other service works during the test run phase. A good use case is when there is expected to get a reponse from the user like in the input() function, the test would just wait until someone input some data and press enter. Mocking the input() function allows the test to run uninterrupted.

Ответить
@JorgeEscobarMX
@JorgeEscobarMX - 04.07.2023 22:22

A little chaotic and the examples were very well done.

Ответить
@sadikplayz976
@sadikplayz976 - 03.07.2023 17:39

This channel is underrated AF!

Ответить
@HandyAndyG
@HandyAndyG - 03.07.2023 17:15

That assertEqual, for the first example using requests, is bad code. Testing that the value used in the mock is the value returned from the mocked call is nonsensical. Equivalent to testing that 1 == 1. Useless tests are worse than no tests.

Ответить
@philtoa334
@philtoa334 - 03.07.2023 15:58

Thx_.

Ответить
@ButchCassidyAndSundanceKid
@ButchCassidyAndSundanceKid - 03.07.2023 15:48

Very well explained. Thanks.

Ответить