def test_sets_renderer(self): result = json_view() assert result['renderer'] == 'json'
def test_allows_overriding_renderer(self): result = json_view(renderer='h:some/template.json.jinja2') assert result['renderer'] == 'h:some/template.json.jinja2'
def test_sets_accept(self): result = json_view() assert result['accept'] == 'application/json'
def test_passes_through_other_kwargs(self): result = json_view(foo='bar', baz='qux') assert result['foo'] == 'bar' assert result['baz'] == 'qux'
def test_allows_overriding_accept(self): result = json_view(accept='application/ld+json') assert result['accept'] == 'application/ld+json'
def test_allows_overriding_renderer(self): result = json_view(renderer="h:some/template.json.jinja2") assert result["renderer"] == "h:some/template.json.jinja2"
def test_allows_overriding_accept(self): result = json_view(accept="application/ld+json") assert result["accept"] == "application/ld+json"
def test_passes_through_other_kwargs(self): result = json_view(foo="bar", baz="qux") assert result["foo"] == "bar" assert result["baz"] == "qux"
def test_sets_renderer(self): result = json_view() assert result["renderer"] == "json"
def test_sets_accept(self): result = json_view() assert result["accept"] == "application/json"