(
self,
repository: str,
auth_config: dict[str, str],
tag: str,
stream: bool,
decode: bool,
)
| 48 | self.password = None |
| 49 | |
| 50 | def push( |
| 51 | self, |
| 52 | repository: str, |
| 53 | auth_config: dict[str, str], |
| 54 | tag: str, |
| 55 | stream: bool, |
| 56 | decode: bool, |
| 57 | ) -> list[str]: |
| 58 | assert repository == self.repository, "MockDockerAPI.push" |
| 59 | assert auth_config["username"] == self.username, "MockDockerAPI.push" |
| 60 | assert auth_config["password"] == self.password, "MockDockerAPI.push" |
| 61 | assert tag == self.tag, "MockDockerAPI.push" |
| 62 | assert stream == True, "MockDockerAPI.push" |
| 63 | assert decode == True, "MockDockerAPI.push" |
| 64 | return ["pushing", "push complete"] |
| 65 | |
| 66 | |
| 67 | class MockDockerClient: |
no outgoing calls
no test coverage detected