Skip to content

Commit 42335f5

Browse files
authored
Merge pull request #58 from kh31d4r/master
Set the terminal with when running unittests that depend on it
2 parents e22b03f + cd6098a commit 42335f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test_config.py

+6
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ class FormattingTest(TestCase):
143143
" --realname REALNAME\n"
144144
" --ident IDENT")
145145

146+
@classmethod
147+
def setUpClass(cls):
148+
"""Set the terminal width to 160 to prevent the tests from failing on small terminals"""
149+
os.environ["COLUMNS"] = "160"
150+
151+
146152
def assertPrintOption(self, options, returnCode, output):
147153
"""Assert that parseOptions returns a certain code and prints a certain output"""
148154
with self.assertRaises(SystemExit) as e:

0 commit comments

Comments
 (0)