| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,8 +53,7 @@ def test_stream_generic_package(project): | |||
| 53 | 53 | package_name=package_name, | |
| 54 | 54 | package_version=package_version, | |
| 55 | 55 | file_name=file_name, | |
| 56 | - streamed=True, | ||
| 57 | - action="iterator", | ||
| 56 | + iterator=True, | ||
| 58 | 57 | ) | |
| 59 | 58 | ||
| 60 | 59 | assert isinstance(bytes_iterator, Iterator) | |
@@ -90,8 +89,7 @@ def test_stream_generic_package_to_file(tmp_path, project): | |||
| 90 | 89 | package_name=package_name, | |
| 91 | 90 | package_version=package_version, | |
| 92 | 91 | file_name=file_name, | |
| 93 | - streamed=True, | ||
| 94 | - action="iterator", | ||
| 92 | + iterator=True, | ||
| 95 | 93 | ) | |
| 96 | 94 | ||
| 97 | 95 | with open(path, "wb") as f: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,9 @@ def test_response_content(capsys): | |||
| 36 | 36 | ) | |
| 37 | 37 | ||
| 38 | 38 | resp = requests.get("https://example.com", stream=True) | |
| 39 | - utils.response_content(resp, streamed=True, action=None, chunk_size=1024) | ||
| 39 | + utils.response_content( | ||
| 40 | + resp, streamed=True, iterator=False, action=None, chunk_size=1024 | ||
| 41 | + ) | ||
| 40 | 42 | ||
| 41 | 43 | captured = capsys.readouterr() | |
| 42 | 44 | assert "test" in captured.out | |
| Back | FazBrowse Home | New Git URL |
0 commit comments