This commit is contained in:
parent
82e4d424c7
commit
ed4a4b629e
|
@ -316,7 +316,7 @@ class Carl(BaseResource, HTTPResource):
|
|||
relationships='',
|
||||
**filters,
|
||||
):
|
||||
if id is not None:
|
||||
if id:
|
||||
result = self.entity_by_id(carl_type=carl_type, carl_id=id, relationships=relationships)
|
||||
result = [result]
|
||||
else:
|
||||
|
|
|
@ -573,6 +573,7 @@ def test_carl_endpoint_entities_by_id_rel_ok(app, carl_conn, e_type, params):
|
|||
('wo', {'q': 'toto', 'text_attrname': 'foobar', 'filter_foo': 'bar'}),
|
||||
('wo', {'q': 'toto', 'text_attrname': 'foobar', 'filter_foo': 'bar', 'filter_': 'test'}),
|
||||
('t2', {'q': 'toto', 'relationships': 'toto, titi, tutu'}),
|
||||
('t2', {'q': 'toto', 'relationships': 'toto, titi, tutu', 'id': ''}),
|
||||
],
|
||||
)
|
||||
@responses.activate
|
||||
|
|
Loading…
Reference in New Issue