Skip to content

Commit

Permalink
Regression test for PR #1095.
Browse files Browse the repository at this point in the history
The original test was a false positive.
  • Loading branch information
nicolaiarocci committed Mar 30, 2018
1 parent 9a2350b commit eed6002
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions eve/tests/methods/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,12 @@ def oplog_callback(resource, entries):
self.assertTrue('customvalue' in oplog_entry['extra']['customfield'])

def test_post_oplog(self):
r = self.test_client.post(self.known_resource_url,
data=json.dumps(self.data),
headers=self.headers,
environ_base={'REMOTE_ADDR': '127.0.0.1'})
r = self.test_client.post(
self.different_resource_url,
data=json.dumps({'username': 'test', 'ref':
'1234567890123456789012345' }),
headers=self.headers, environ_base={'REMOTE_ADDR': '127.0.0.1'})

r, status = self.oplog_get()
self.assert200(status)
self.assertEqual(len(r['_items']), 1)
Expand Down

0 comments on commit eed6002

Please sign in to comment.