From 56e1edef8011fc807b25f5499d816f0850ddcc27 Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Fri, 17 Jan 2020 14:55:06 -0800 Subject: [PATCH] More windows test support, Closes issue #122 (#128) --- tests/test_length_sequence.py | 8 ++------ tests/test_sequences.py | 5 ++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/test_length_sequence.py b/tests/test_length_sequence.py index cfe89983..964796ee 100644 --- a/tests/test_length_sequence.py +++ b/tests/test_length_sequence.py @@ -55,13 +55,11 @@ def child(kind): child(kind) -@pytest.mark.skipif(platform.system() == 'Windows', - reason='https://github.com/jquast/blessed/issues/122') def test_sequence_length(all_terms): """Ensure T.length(string containing sequence) is correcterm.""" @as_subprocess def child(kind): - term = TestTerminal(kind=kind) + term = TestTerminal(kind=kind, force_styling=True) # Create a list of ascii characters, to be separated # by word, to be zipped up with a cycling list of # terminal sequences. Then, compare the length of @@ -401,14 +399,12 @@ def child(kind): child(all_terms) -@pytest.mark.skipif(platform.system() == 'Windows', - reason='https://github.com/jquast/blessed/issues/122') def test_termcap_will_move_true(all_terms): """Test parser about sequences that move the cursor.""" @as_subprocess def child(kind): from blessed.sequences import iter_parse - term = TestTerminal(kind=kind) + term = TestTerminal(kind=kind, force_styling=True) assert next(iter_parse(term, term.move(98, 76)))[1].will_move assert next(iter_parse(term, term.move(54)))[1].will_move assert next(iter_parse(term, term.cud1))[1].will_move diff --git a/tests/test_sequences.py b/tests/test_sequences.py index 5811315b..b4af8bc5 100644 --- a/tests/test_sequences.py +++ b/tests/test_sequences.py @@ -47,13 +47,12 @@ def child(): child() -@pytest.mark.skipif(platform.system() == 'Windows', - reason='https://github.com/jquast/blessed/issues/122') def test_parametrization(): """Test parameterizing a capability.""" @as_subprocess def child(): - assert TestTerminal().cup(3, 4) == unicode_parm('cup', 3, 4) + term = TestTerminal(force_styling=True) + assert term.cup(3, 4) == unicode_parm('cup', 3, 4) child()