Exemplo n.º 1
0
def test_params_with_string(request_builder):
    params_with_str = decorators.params("param1=value1&param2=value2")
    params_with_str.modify_request(request_builder)
    assert request_builder.info["params"] == {
        "param1": "value1",
        "param2": "value2",
    }
Exemplo n.º 2
0
def test_params_with_list(request_builder):
    params_list = decorators.params(["param1=value1", "param2=value2"])
    params_list.modify_request(request_builder)
    assert request_builder.info["params"] == {
        "param1": "value1",
        "param2": "value2",
    }
Exemplo n.º 3
0
def test_params(request_builder):
    params = decorators.params({"param": "value"})
    params.modify_request(request_builder)
    assert request_builder.info["params"] == {"param": "value"}