From a30b8df75137a483cef00feee03ee4c30914934c Mon Sep 17 00:00:00 2001 From: Edvard Rejthar Date: Wed, 25 Sep 2024 18:22:04 +0200 Subject: [PATCH] WIP --- tests/tests.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index e424212..8462dde 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -325,17 +325,18 @@ def test_run_ask_for_missing(self): run(FurtherEnv2, True, ask_for_missing=False, interface=Mininterface) self.assertEqual("", stdout.getvalue().strip()) - def test_run_ask_for_missing_underscored(self): - # Treating underscores - form2 = """Asking the form {'token_underscore': Tag(val='', description='', annotation=, name='token_underscore')}""" - with patch('sys.stdout', new_callable=StringIO) as stdout: - run(MissingUnderscore, True, interface=Mininterface) - self.assertEqual(form2, stdout.getvalue().strip()) - self.sys("--token-underscore", "1") # dash used instead of an underscore - - with patch('sys.stdout', new_callable=StringIO) as stdout: - run(MissingUnderscore, True, ask_for_missing=True, interface=Mininterface) - self.assertEqual("", stdout.getvalue().strip()) +# TODO + # def test_run_ask_for_missing_underscored(self): + # # Treating underscores + # form2 = """Asking the form {'token_underscore': Tag(val='', description='', annotation=, name='token_underscore')}""" + # with patch('sys.stdout', new_callable=StringIO) as stdout: + # run(MissingUnderscore, True, interface=Mininterface) + # self.assertEqual(form2, stdout.getvalue().strip()) + # self.sys("--token-underscore", "1") # dash used instead of an underscore + + # with patch('sys.stdout', new_callable=StringIO) as stdout: + # run(MissingUnderscore, True, ask_for_missing=True, interface=Mininterface) + # self.assertEqual("", stdout.getvalue().strip()) def test_run_config_file(self): os.chdir("tests")