Skip to content

manual tests should be automated #17

Open

Description

@thomasballinger

Pexpect style tests

Activity

  1. myint commented on Jul 27, 2014

    @myint
    Contributor

    By the way, that pexpect-based bpython-curtsies test I wrote never really achieved what it was meant to.

    TEST = 'bpython-curtsies'
    #TEST = 'bpython'
    
    print('testing with ' + TEST)
    
    import pexpect
    child = pexpect.spawn(TEST, timeout=3)
    child.sendline('abcdef = 123')
    child.expect('abcdef = 123')
    child.sendline('dir()')
    child.expect('abcdef')

    For whatever reason, even with a correctly-working version of bpython-curtsies, the above still does not work. Perhaps I'm just using pexpect incorrectly. Though, strangely, it works properly with python and bpython.

  2. thomasballinger commented on Jul 28, 2014

    @thomasballinger
    MemberAuthor

    Huh! Perhaps it has to do with the terminal modes bpython-curtsies uses? But it's hard to imagine them being that different than normal bpython.

  3. thomasballinger commented on Aug 23, 2014

    @thomasballinger
    MemberAuthor

    We can achieve most of this with pyte terminal emulator tests - it's just input matching we can't.

  4. added this to the August Sprint milestone on Aug 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions