Skip to content

Commit 84a1d7b

Browse files
committed
fixing tests once again
1 parent ca20480 commit 84a1d7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openapi_codec/encode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def _get_parameters(link, encoding, definitions):
280280
definition_data = _get_field_definition_data(field, definitions)
281281

282282
definition_data = definition_data.get('properties')
283-
defs = [d for d in definitions if definitions.get(d).get('properties') == definition_data]
283+
defs = filter(lambda d: definitions.get(d).get('properties') == definition_data, definitions)
284284

285285
if defs:
286286
# Note: Python2.X <-> Python3.X

tests/test_encode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def test_clashing_names(self):
211211
expected_v2_list_params = [
212212
{
213213
'schema': {
214-
'required': ['author', 'co_authoors'],
214+
'required': ['author', 'co_authors'],
215215
'type': 'object',
216216
'properties': {
217217
'co_authors': {

0 commit comments

Comments
 (0)