コード例 #1
0
ファイル: test_parser.py プロジェクト: tkaymak/format-sql
def test_parse_identifier(tokens, expected_value, expected_count):
    result, count = _parse_identifier(tokens)

    assert count == expected_count
    assert result == expected_value
コード例 #2
0
ファイル: test_parser.py プロジェクト: paetzke/format-sql
def test_parse_identifier(tokens, expected_value, expected_count):
    result, count = _parse_identifier(tokens)

    assert count == expected_count
    assert result == expected_value
コード例 #3
0
ファイル: test_parser.py プロジェクト: tkaymak/format-sql
def test_parse_identifier_with_exception():
    with pytest.raises(InvalidIdentifier):
        _parse_identifier([])
コード例 #4
0
ファイル: test_parser.py プロジェクト: paetzke/format-sql
def test_parse_identifier_with_exception():
    with pytest.raises(InvalidIdentifier):
        _parse_identifier([])