Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#48: Cover with a simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Oct 22, 2020
1 parent f9ddb01 commit 35526cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ def test_global_silent_switch_is_making_silent_all_fancy_output(self):
self.assertNotIn('>> Executing :tasks', full_output) # global (SystemIO)
self.assertNotIn('[global]', full_output) # per-task (IO)

def test_is_a_tty(self):
"""Checks if RKD is spawning an interactive session"""

full_output, exit_code = self._run_and_capture_output([':sh', '-c', 'tty'])

self.assertIn('/dev', full_output)

def test_logging_tasks_into_separate_files(self):
"""Checks if RKD is able to log output to file per task
"""
Expand Down

0 comments on commit 35526cd

Please sign in to comment.