Skip to content

Commit

Permalink
More windows test support, Closes issue erikrose#122 (erikrose#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast authored Jan 17, 2020
1 parent 80990c7 commit 56e1ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 2 additions & 6 deletions tests/test_length_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions tests/test_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 56e1ede

Please sign in to comment.