Merge lp:~pedronis/u1db/more-freedom-for-backends into lp:u1db
Status: | Merged |
---|---|
Approved by: | Samuele Pedroni |
Approved revision: | 344 |
Merged at revision: | 342 |
Proposed branch: | lp:~pedronis/u1db/more-freedom-for-backends |
Merge into: | lp:u1db |
Diff against target: |
171 lines (+76/-61) 2 files modified
u1db/tests/__init__.py (+5/-0) u1db/tests/test_backends.py (+71/-61) |
To merge this branch: | bzr merge lp:~pedronis/u1db/more-freedom-for-backends |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Casteleijn (community) | Approve | ||
Review via email: mp+113308@code.launchpad.net |
Commit message
more freedom for backends reusing the ref tests:
- split out the tests for *validate* methods which are partly internal details
- support setting accept_
Description of the change
more freedom for backends reusing the reftests:
- split out the tests for *validate* methods which are partly internal details
- support setting accept_
to test the latter: apply locally the diff
=== modified file 'u1db/tests/
--- u1db/tests/
+++ u1db/tests/
@@ -476,6 +476,12 @@
def test_put_
+ if 'InMemory' in self.db.
+ def fixed():
+ print "FIXED"
+ return ''
+ self.db.
+ self.accept_
doc = self.db.
make check should still pass printing FIXED twice
Works as advertised. Code looks good, with the duplicate test remained (sorry, my fault)