From aa57fbac878edf6326539638b00b02467ce821ea Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 10 Jan 2013 15:55:21 -0200 Subject: LeapDatabase passes u1db TestHTTPClientBase. --- tests/test_leap_backend.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/test_leap_backend.py b/tests/test_leap_backend.py index 5a992e76..5f58c832 100644 --- a/tests/test_leap_backend.py +++ b/tests/test_leap_backend.py @@ -16,7 +16,10 @@ from leap.soledad.tests.u1db_tests.test_backends import AllDatabaseTests from leap.soledad.tests.u1db_tests.test_http_database import ( TestHTTPDatabaseSimpleOperations, TestHTTPDatabaseCtrWithCreds, - TestHTTPDatabaseIntegration + TestHTTPDatabaseIntegration, +) +from leap.soledad.tests.u1db_tests.test_http_client import ( + TestHTTPClientBase, ) @@ -75,7 +78,7 @@ class LeapTests(AllDatabaseTests): #----------------------------------------------------------------------------- -# The following tests come from `u1db.tests.test_http_client`. +# The following tests come from `u1db.tests.test_http_database`. #----------------------------------------------------------------------------- class TestLeapDatabaseSimpleOperations(TestHTTPDatabaseSimpleOperations): @@ -159,4 +162,13 @@ class TestLeapDatabaseIntegration(TestHTTPDatabaseIntegration): self.assertGetDoc(db0, '%fff', doc.rev, '{}', False) self.assertGetDoc(db, '%fff', doc.rev, '{}', False) + +#----------------------------------------------------------------------------- +# The following tests come from `u1db.tests.test_http_client`. +#----------------------------------------------------------------------------- + +class TestLeapClientBase(TestHTTPClientBase): + pass + + load_tests = tests.load_with_scenarios -- cgit v1.2.3