Skip to content

Commit

Permalink
Change path() to files()
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Aug 8, 2023
1 parent 6a659e3 commit 61ec7f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testsuite/openshift/httpbin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def url(self):
return f"{self.name}.{self.openshift.project}.svc.cluster.local"

def commit(self):
with resources.path("testsuite.resources", "httpbin.yaml") as path:
self.httpbin_objects = self.openshift.new_app(
path, {"NAME": self.name, "LABEL": self.label, "REPLICAS": self.replicas}
)
self.httpbin_objects = self.openshift.new_app(
resources.files("testsuite.resources").joinpath("httpbin.yaml"),
{"NAME": self.name, "LABEL": self.label, "REPLICAS": self.replicas},
)

with self.openshift.context:
assert self.openshift.is_ready(self.httpbin_objects.narrow("deployment")), "Httpbin wasn't ready in time"
Expand Down

0 comments on commit 61ec7f2

Please sign in to comment.