unioslo / harborapi

Python async client for the Harbor REST API v2.0.
https://unioslo.github.io/harborapi/
MIT License
28 stars 5 forks source link

ArtifactReport.has_* should not rely on the implementation of `with_*` #10

Open pederhan opened 1 year ago

pederhan commented 1 year ago

Why create a whole new report and check its artifacts, when we should just be able to do

return any(artifact.has_foo("...") for artifact in self.artifacts)

We already do this with all has_* methods except has_repository and has_severity.