Skip to content

Commit

Permalink
add a functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabisurita committed May 21, 2017
1 parent b32047e commit 92ca18d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kinto_http/tests/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,12 @@ def test_request_batching(self):
batch.create_record(data={'bar': 'baz'},
permissions={'read': ['alexis']})

_, _, r1, r2 = batch.parse_results()
records = self.client.get_records(bucket='mozilla', collection='fonts')

assert len(records) == 2
assert records[0] == r2['data']
assert records[1] == r1['data']

def test_replication(self):
# First, create a few records on the first kinto collection.
Expand Down

0 comments on commit 92ca18d

Please sign in to comment.