コード例 #1
0
def test_t7():
    with pytest.raises(Exception) as e:
        args = {
            'connection_info': {
                "type": "mysql",
                "host": "localhost",
                "namespace": "freedata",
                "user": "******",
                "password": "******",
                "port": "1234"
            }
        }
        datastorex.delete(args)
コード例 #2
0
def test_t11():
    args = {
        'connection_info': {
            "type": "mysql",
            "host": "localhost",
            "namespace": "testtest",
            "user": "******",
            "password": "******",
            "port": 3306
        },
        "tablename": "yoooo"
    }
    datastorex.delete(args)
コード例 #3
0
def test_t10():
    with pytest.raises(Exception) as e:
        args = {
            'connection_info': {
                "type": "mysql",
                "host": "localhost",
                "namespace": "testtest",
                "user": "******",
                "password": "******",
                "port": 3306
            },
            "tablename": "ohhlala"
        }
        datastorex.delete(args)
コード例 #4
0
def test_t9():
    with pytest.raises(Exception) as e:
        args = {
            'connection_info': {
                "type": "sqlite",
                "host": "localhost",
                "namespace": "freedata",
                "user": "******",
                "password": "******",
                "port": "1234"
            },
            "tablename": "ohhlala"
        }
        datastorex.delete(args)
コード例 #5
0
def test_t13():
    args = {
        'connection_info': {
            "type": "mysql",
            "host": "localhost",
            "namespace": "testtest",
            "user": "******",
            "password": "******",
            "port": 3306
        },
        "tablename":
        "test_all_datatypes",
        "filter": [{
            "operand": "id",
            "operator": "!=",
            "value": 23
        }, {
            "operand": "is_active",
            "operator": "=",
            "value": True
        }]
    }
    datastorex.delete(args)
コード例 #6
0
def test_t2():
    with pytest.raises(Exception) as e:
        args = ''
        datastorex.delete(args)
コード例 #7
0
def test_t1():
    with pytest.raises(Exception) as e:
        datastorex.delete()
コード例 #8
0
def test_t6():
    with pytest.raises(Exception) as e:
        args = {'connection_info': {"type": "mysql"}}
        datastorex.delete(args)
コード例 #9
0
def test_t5():
    with pytest.raises(Exception) as e:
        args = {'connection_info': {"tablename": "yoooo"}}
        datastorex.delete(args)
コード例 #10
0
def test_t4():
    with pytest.raises(Exception) as e:
        args = {'connection_info': {}}
        datastorex.delete(args)