(self)
| 133 | ) |
| 134 | |
| 135 | def test_import_image(self): |
| 136 | self.client.import_image( |
| 137 | fake_api.FAKE_TARBALL_PATH, |
| 138 | repository=fake_api.FAKE_REPO_NAME, |
| 139 | tag=fake_api.FAKE_TAG_NAME |
| 140 | ) |
| 141 | |
| 142 | fake_request.assert_called_with( |
| 143 | 'POST', |
| 144 | f"{url_prefix}images/create", |
| 145 | params={ |
| 146 | 'repo': fake_api.FAKE_REPO_NAME, |
| 147 | 'tag': fake_api.FAKE_TAG_NAME, |
| 148 | 'fromSrc': fake_api.FAKE_TARBALL_PATH |
| 149 | }, |
| 150 | data=None, |
| 151 | timeout=DEFAULT_TIMEOUT_SECONDS |
| 152 | ) |
| 153 | |
| 154 | def test_import_image_from_bytes(self): |
| 155 | stream = (i for i in range(0, 100)) |
nothing calls this directly
no test coverage detected