We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcc3414 commit d127da1Copy full SHA for d127da1
1 file changed
libpythonpro_fls/tests/test_spam/test_buscar_avatar.py
@@ -9,6 +9,12 @@ def test_buscar_avatar():
9
'login': 'fabio1008', 'id': 83844802,
10
'avatar_url': 'https://avatars.githubusercontent.com/u/83844802?v=4',
11
}
12
+ get_original=github_api.requests.get
13
github_api.requests.get = Mock(return_value=resp_mock)
14
url = github_api.buscar_avatar('fabio1008')
15
assert 'https://avatars.githubusercontent.com/u/83844802?v=4' == url
16
+ github_api.requests.get = get_original
17
+
18
+def test_buscar_avatar_integracao():
19
+ url = github_api.buscar_avatar('fabio')
20
+ assert 'https://avatars.githubusercontent.com/u/83844802?v=4' == url
0 commit comments