Skip to content

Commit c6664e7

Browse files
committed
Fix test by adding None value
1 parent 7e248c1 commit c6664e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

omise/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def list(cls, **kwargs):
742742
743743
:rtype: LazyCollection
744744
"""
745-
return LazyCollection(cls._collection_path(), fromDate = kwargs.pop('fromDate', None), toDate = kwargs.pop('toDate', None))
745+
return LazyCollection(cls._collection_path(), fromDate=kwargs.pop('fromDate', None), toDate=kwargs.pop('toDate', None))
746746

747747
def reload(self):
748748
"""Reload the charge details.
@@ -1054,8 +1054,8 @@ class LazyCollection(object):
10541054
def __init__(self, collection_path, **kwargs):
10551055
self.collection_path = collection_path
10561056
self._exhausted = False
1057-
self.fromDate = kwargs.pop('fromDate')
1058-
self.toDate = kwargs.pop('toDate')
1057+
self.fromDate = kwargs.pop('fromDate', None)
1058+
self.toDate = kwargs.pop('toDate', None)
10591059

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

0 commit comments

Comments
 (0)