Exemplo n.º 1
0
def test_none_default_connection(mock_from_mysql_call):
    mock_from_mysql_call.return_value = ''
    expected = {
        'not_default': ''
    }
    result = from_call('mysql', connection='not_default')
    assert expected == result
Exemplo n.º 2
0
def test_unknown_command():
    with raises(ValueError):
        from_call('not_mysql')

    with raises(ValueError):
        from_call('')