| Conditions | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | # pylint: disable=bad-continuation |
||
| 9 | def test_samples(client): |
||
| 10 | """Create various sample images for manual verfification.""" |
||
| 11 | for name, url in [ |
||
| 12 | ("basic.jpg", "/ch/hello/world.jpg"), |
||
| 13 | ("nominal.jpg", "/ch/a-normal-line-of-top-meme-text-followed-by/" |
||
| 14 | "another-normal-line-of-bottom-meme-text.jpg"), |
||
| 15 | ("long.jpg", "/ch/" + ("long-" * 15) + "line/short-line.jpg"), |
||
| 16 | ("subscripts.jpg", "/ch/some-unicode-subscripts/h%E2%82%82o.jpg"), |
||
| 17 | ]: |
||
| 18 | with SAMPLES.joinpath(name).open('wb') as image: |
||
|
|
|||
| 19 | response = client.get(url) |
||
| 20 | data = response.get_data() |
||
| 21 | image.write(data) |
||
| 22 |
This check looks for calls to members that are non-existent. These calls will fail.
The member could have been renamed or removed.