Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
add prints to test_log_version
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Feb 2, 2023
1 parent c475667 commit b77970a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/container_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ def test_log_version(version_container):
"""Verify the container outputs the correct version to the logs."""
version_container.wait() # make sure container exited if running test isolated
log_output = version_container.logs().decode("utf-8").strip()
print("log output:", log_output)

pkg_vars = {}
with open(VERSION_FILE) as f:
exec(f.read(), pkg_vars) # nosec
project_version = pkg_vars["__version__"]
print("project version: ", project_version)
assert (
log_output == project_version
), f"Container version output to log does not match project version file {VERSION_FILE}"
Expand Down

0 comments on commit b77970a

Please # to comment.