コード例 #1
0
def test_plain_editor_commands_detected():
    assert not iocommands.editor_command('select * from foo')
    assert not iocommands.editor_command(r'\easy does it')

    assert iocommands.editor_command(r'\e') == r'\e'
    assert iocommands.editor_command(r'\e myfile.txt') == r'\e'
    assert iocommands.editor_command(r'select * from foo \e') == r'\e'

    assert iocommands.editor_command(r'  \e  ') == r'\e'
    assert iocommands.editor_command(r'select * from foo \e  ') == r'\e'
コード例 #2
0
ファイル: test_internal.py プロジェクト: mirobertod/pgspecial
def test_plain_editor_commands_detected():
    assert not iocommands.editor_command("select * from foo")
    assert not iocommands.editor_command(r"\easy does it")

    assert iocommands.editor_command(r"\e") == r"\e"
    assert iocommands.editor_command(r"\e myfile.txt") == r"\e"
    assert iocommands.editor_command(r"select * from foo \e") == r"\e"

    assert iocommands.editor_command(r"  \e  ") == r"\e"
    assert iocommands.editor_command(r"select * from foo \e  ") == r"\e"
コード例 #3
0
ファイル: test_internal.py プロジェクト: mirobertod/pgspecial
def test_edit_view_command_detected():
    assert iocommands.editor_command(r"\ev myview") == r"\ev"
コード例 #4
0
def test_edit_view_command_detected():
    assert iocommands.editor_command(r'\ev myview') == r'\ev'