Skip to content

Commit

Permalink
Update tests/google_sheets_2/test_google_sheets_2.py
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Jolibois <[email protected]>
  • Loading branch information
lukapeschke and PrettyWood authored Sep 29, 2023
1 parent 4e37a10 commit 1744922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/google_sheets_2/test_google_sheets_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def test_authentified_fetch(mocker, con):
def get_columns_in_schema(schema):
"""Pydantic generates schema slightly differently in python <=3.7 and in python 3.8"""
try:
if (defs := schema.get('definitions')) or (defs := schema.get('$defs')):
if (defs := schema.get('$defs') or schema.get('definitions')):
return defs['sheet']['enum']
else:
return schema['properties']['sheet']['enum']
Expand Down

0 comments on commit 1744922

Please sign in to comment.