File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def test_collection_get_limit_to_first(self, ds_admin):
66
66
assert ds_admin .collection ('Marvels' ).document ('Movies' ).collection ('PhaseOne' ).order_by ('year' ).limit_to_first (1 ).get () == [{'001' : self .__class__ .movies1 }]
67
67
68
68
def test_collection_get_limit_to_last (self , ds_admin ):
69
- assert ds_admin .collection ('Marvels' ).document ('Movies' ).collection ('PhaseOne' ).order_by ('year' ).limit_to_last (1 ).get () == [{'001' : self .__class__ .movies1 }]
69
+ assert ds_admin .collection ('Marvels' ).document ('Movies' ).collection ('PhaseOne' ).order_by ('year' , direction = 'DESCENDING' ).limit_to_last (1 ).get () == [{'001' : self .__class__ .movies1 }]
70
70
71
71
def test_collection_get_end_at (self , ds_admin ):
72
72
assert ds_admin .collection ('Marvels' ).document ('Movies' ).collection ('PhaseOne' ).order_by ('year' ).end_at ({'year' : 2010 }).get () == [{'001' : self .__class__ .movies1 }]
You can’t perform that action at this time.
0 commit comments