Skip to content

Commit

Permalink
tests: Prevent tests from showing the TUI
Browse files Browse the repository at this point in the history
Capture stdout from some tests that run the TUI, so that it doesn't
flash across the screen while running the test suite.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed Nov 9, 2023
1 parent 7943764 commit 33aba70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,7 @@ def test_live_tracking(self, tmp_path, simple_test_file, free_port):
"live",
str(free_port),
],
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
)

Expand Down Expand Up @@ -1429,6 +1430,7 @@ def test_live_tracking_server_when_client_disconnects(self, free_port, tmp_path)
str(free_port),
],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
)

# WHEN
Expand Down

0 comments on commit 33aba70

Please sign in to comment.