Skip to content

Commit

Permalink
Fix test by adding None value
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasNaouchi committed Feb 2, 2025
1 parent 7e248c1 commit c6664e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def list(cls, **kwargs):
:rtype: LazyCollection
"""
return LazyCollection(cls._collection_path(), fromDate = kwargs.pop('fromDate', None), toDate = kwargs.pop('toDate', None))
return LazyCollection(cls._collection_path(), fromDate=kwargs.pop('fromDate', None), toDate=kwargs.pop('toDate', None))

def reload(self):
"""Reload the charge details.
Expand Down Expand Up @@ -1054,8 +1054,8 @@ class LazyCollection(object):
def __init__(self, collection_path, **kwargs):
self.collection_path = collection_path
self._exhausted = False
self.fromDate = kwargs.pop('fromDate')
self.toDate = kwargs.pop('toDate')
self.fromDate = kwargs.pop('fromDate', None)
self.toDate = kwargs.pop('toDate', None)

def __len__(self):
return self._fetch_objects(limit=1, offset=0)['total']
Expand Down

0 comments on commit c6664e7

Please sign in to comment.