def test_get_url(test_type):
    init_cache()
    assert_request(
        "GET",
        ROUTE + GET_URL_INPUT[test_type],
        AssertRequest({}, {}),
        GET_URL_OUTPUT[test_type],
    )
Example #2
0
def test_post(test_type):
    assert_request("POST", ROUTE, POST_INPUT[test_type],
                   POST_OUTPUT[test_type])
Example #3
0
def test_get(test_type):
    assert_request("GET", ROUTE, GET_INPUT[test_type], GET_OUTPUT[test_type])
Example #4
0
def test_put(test_type):
    clean_db()
    init_db()
    assert_request("PUT", ROUTE, PUT_INPUT[test_type], PUT_OUTPUT[test_type])
Example #5
0
def test_delete(test_type):
    clean_db()
    init_db()
    assert_request("DELETE", ROUTE, DELETE_INPUT[test_type],
                   DELETE_OUTPUT[test_type])
Example #6
0
def test_get(test_type):
    clean_db()
    init_db()
    assert_request("GET", ROUTE, GET_INPUT[test_type], GET_OUTPUT[test_type])
def test_post(test_type):
    init_cache()
    assert_request("POST", ROUTE, POST_INPUT[test_type],
                   POST_OUTPUT[test_type])
def test_get(test_type):
    init_cache()
    assert_request("GET", ROUTE, GET_INPUT[test_type], GET_OUTPUT[test_type])