Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jdddog committed May 8, 2023
1 parent 0bdb2a6 commit 3436180
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,9 @@ def create(self, task_logging: bool = False):
def load_and_parse_json(file_path: str, date_fields: Set[str] = None):
"""Load a JSON file for testing purposes. It parses string dates and datetimes into date and datetime instances."""

if date_fields is None:
date_fields = set()

def parse_datetime(obj):
for key, value in obj.items():
# Try to parse into a date or datetime
Expand Down

0 comments on commit 3436180

Please sign in to comment.