File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
libpythonpro/tests/test_spam Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 55install :
66 - pip install -q -r requirements-dev.txt
77script :
8- -flake8
8+ -flake8
9+ -pytest libpythonpro
Original file line number Diff line number Diff line change 88@pytest .fixture
99def avatar_url (mocker ):
1010 resp_mock = Mock ()
11- url = 'https://avatars3 .githubusercontent.com/u/402714 ?v=4'
11+ url = 'https://avatars .githubusercontent.com/u/102936883 ?v=4'
1212 resp_mock .json .return_value = {
13- 'login' : 'renzo ' , 'id' : 402714 ,
13+ 'login' : 'GuilhermeePires ' , 'id' : 102936883 ,
1414 'avatar_url' : url ,
1515 }
1616 get_mock = mocker .patch ('libpythonpro.github_api.requests.get' )
@@ -19,10 +19,10 @@ def avatar_url(mocker):
1919
2020
2121def test_buscar_avatar (avatar_url ):
22- url = github_api .buscar_avatar ('renzo ' )
22+ url = github_api .buscar_avatar ('GuilhermeePires ' )
2323 assert avatar_url == url
2424
2525
2626def test_buscar_avatar_integracao ():
27- url = github_api .buscar_avatar ('renzon ' )
28- assert 'https://avatars3 .githubusercontent.com/u/3457115 ?v=4' == url
27+ url = github_api .buscar_avatar ('GuilhermeePires ' )
28+ assert 'https://avatars .githubusercontent.com/u/102936883 ?v=4' == url
You can’t perform that action at this time.
0 commit comments