Skip to content

Commit

Permalink
test: Prevent test suite from renderering Textual UI
Browse files Browse the repository at this point in the history
Send client stdout and stderr to PIPE so Textual UI will not be shown on
tests output.

Signed-off-by: Vitor Espindola <[email protected]>
  • Loading branch information
vitorespindola authored and Gus Monod committed May 20, 2024
1 parent 7518b16 commit 78de5f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ def test_tree_generated(self, tmp_path, simple_test_file):
str(results_file),
],
cwd=str(tmp_path),
stderr=subprocess.DEVNULL,
text=True,
input="q",
)
Expand All @@ -991,6 +992,7 @@ def test_temporary_allocations_tree(self, tmp_path, simple_test_file):
str(results_file),
],
cwd=str(tmp_path),
stderr=subprocess.DEVNULL,
text=True,
input="q",
)
Expand Down Expand Up @@ -1413,6 +1415,7 @@ def test_live_tracking(self, tmp_path, simple_test_file, free_port):
str(free_port),
],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
stdin=subprocess.PIPE,
)

Expand Down Expand Up @@ -1536,6 +1539,7 @@ def test_live_tracking_server_when_client_disconnects(self, free_port, tmp_path)
],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
)

# WHEN
Expand Down

0 comments on commit 78de5f5

Please sign in to comment.