Skip to content

Commit

Permalink
Refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Feb 27, 2024
1 parent e7044cd commit d7ac1f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ def keycloak(self) -> Generator[KeycloakAdmin, None, None]:
str(self.RESOURCES_PATH),
"/opt/keycloak/data/import",
)
.with_bind_ports(8080, 8080)
)
assert isinstance(
container, KeycloakContainer
) # HACK: wrong type annotation in testcontainers `with_command`
container.start()
container.with_bind_ports(container.port, container.port).start()
keycloak = container.get_client()
keycloak.import_realm(
json.loads(Path(self.RESOURCES_PATH / "realm.json").read_bytes())
Expand Down

0 comments on commit d7ac1f6

Please sign in to comment.