Skip to content

Commit

Permalink
output logs from docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirving committed Nov 15, 2023
1 parent fcec93f commit c725ba9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests_integration/test_docker_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ def _run_server_docker():
server_port = container.get_exposed_port(port)
server_url = f"http://{server_host}:{server_port}/api/butler"
yield server_url
(stdout, stderr) = container.get_logs()
if stdout:
print("STDOUT:")
print(stdout)
if stderr:
print("STDERR:")
print(stderr)


class ButlerDockerTestCase(unittest.TestCase):
Expand Down

0 comments on commit c725ba9

Please sign in to comment.