Skip to content

Commit

Permalink
ok, so, i have no idea how thats working
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderankin committed Feb 20, 2024
1 parent 5b39378 commit 0a7382d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/testcontainers/core/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def get_logs(self) -> tuple[str, str]:
raise ContainerStartException("Container should be started before getting logs")
return self._container.logs(stderr=False), self._container.logs(stdout=False)

def exec(self, command) -> tuple[int, str]: # noqa: A003
def exec(self, command) -> tuple[int, str]:
if not self._container:
raise ContainerStartException("Container should be started before executing a command")
return self._container.exec_run(command)

0 comments on commit 0a7382d

Please sign in to comment.