def test_get_arguments_keyword_with_context(): args = get_arguments({"foo": "bar"}, context="baz") assert args == (["baz"], {"foo": "bar"})
def test_get_arguments_invalid_string(): with pytest.raises(AssertionError): get_arguments("str")
def test_get_arguments_positional_with_context(): args = get_arguments(["foo"], context="bar") assert args == (["bar", "foo"], {})
def test_get_arguments_keyword(): assert get_arguments({"foo": "bar"}) == ([], {"foo": "bar"})
def test_get_arguments_positional(): assert get_arguments([2, 3]) == ([2, 3], {})
def test_get_arguments_invalid(): with pytest.raises(AssertionError): assert get_arguments(5)
def test_get_arguments_none(): with pytest.raises(AssertionError): get_arguments(None)
def test_get_arguments_no_params_with_context(): args = get_arguments(context="bar") assert args == (["bar"], {})