2137 Commits

Author SHA1 Message Date
Brett Sun
af243907dd Fix wrong argument order for python 3.4 2016-12-12 15:53:56 +01:00
Brett Sun
ae52e015ce Fix changefeed tests that were mocking the wrong thing 2016-12-12 15:53:56 +01:00
Brett Sun
27eaae01a7 Fix base connection's run query interface 2016-12-12 15:53:56 +01:00
Brett Sun
8ffdd6a2ce Fix rethinkdb schema index test 2016-12-12 15:53:56 +01:00
Brett Sun
9a7e695e18 Fix tests still relying on being able to access removed attribute of the Bigchain class 2016-12-12 15:48:48 +01:00
Brett Sun
ccd8e74868 Fix initialization-related tests for rethinkdb schema 2016-12-12 15:48:48 +01:00
Brett Sun
32b6c50d63 Fix usage of backend functions that weren't getting a connection passed in 2016-12-12 15:48:48 +01:00
Brett Sun
8caeed54bf Fix backend module dispatch error tests broken from renaming 2016-12-12 15:48:48 +01:00
Brett Sun
2657226573 Fix Bigchain class tests due to changes to internal attributes 2016-12-12 15:48:48 +01:00
Brett Sun
597cd778e9 Fix interactive drop database commands 2016-12-12 15:48:48 +01:00
Brett Sun
dc31f7f607 Fix small module issues related to rethinkdb schema tests 2016-12-12 15:48:48 +01:00
Brett Sun
108b5cba30 Fix tests broken by adding a 'backend' key to the config 2016-12-12 15:48:48 +01:00
Brett Sun
da71b3d84b Fix backend module dispatch decorator tests broken from renaming 2016-12-12 15:48:48 +01:00
Brett Sun
941b47d1ac Fix misc tests affected by changes related to database abstraction 2016-12-12 15:48:48 +01:00
Brett Sun
9e3bca7e85 Fix schema-related database tests 2016-12-12 15:48:48 +01:00
Brett Sun
9ca7f9f270 Move tests/db/test_utils.py to rethinkdb-only schema test 2016-12-12 15:48:48 +01:00
Brett Sun
fc533bb158 Fix tests for bigchaindb commands 2016-12-12 15:48:48 +01:00
Brett Sun
9946147f77 Fix bigchaindb/commands for new connection and database interfaces 2016-12-12 15:48:48 +01:00
Brett Sun
c6acd8e1f5 Add generic init_database() function to set up database schema 2016-12-12 15:48:48 +01:00
Brett Sun
4343a9297c Add docstrings for database schema interface 2016-12-12 15:48:48 +01:00
Brett Sun
c5d55783fa Move docstrings out of rethinkdb/query.py implementation into interface 2016-12-12 15:48:48 +01:00
Brett Sun
c9766b5e92 Generalize naming of module dispatch decorator factory 2016-12-12 15:48:48 +01:00
Brett Sun
eda1c1bf55 Rename backend implementation decorators to be aligned with their action of registering functions 2016-12-12 15:48:48 +01:00
Brett Sun
6e14a63291 Add backlog and votes secondary indexes to rethinkdb's create_index() 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
9c102aa140 Add todos 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
d43e77ce4a Add docs for backend 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
67af0deaae Remove unused exception variable 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
261fe8ebf6 Remove superfluous else 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
be8f3dc69d Remove superfluous parentheses 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
cd8d038a83 End sentence with period :) 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
2be623221f Add line between std lib & 3rd party imports 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
b8bc1a5af9 Rename test module to plural form --> utils 2016-12-12 15:48:48 +01:00
Sylvain Bellemare
8c1dbc86a0 Import std libs at the top
the rationale behind importing under a test function is to import what
is being tested, and perhasp likely to fail, to isolate possible errors
resulting from the import itself

see
http://docs.pylonsproject.org/en/latest/community/testing.html#rule-never-import-the-module-under-test-at-test-module-scope for more
2016-12-12 15:48:48 +01:00
Sylvain Bellemare
f341bd1586 Rename backend.util to backend.utils 2016-12-12 15:48:48 +01:00
Brett Sun
d4da573389 Sync query interface with rethinkdb implementation based on latest changes 2016-12-12 15:48:48 +01:00
Brett Sun
75ef0f2fda Import the backend interfaces on module import 2016-12-12 15:48:48 +01:00
Brett Sun
ab18203b7c Register rethinkdb backend implementation to backend interface dispatchers 2016-12-12 15:48:48 +01:00
Brett Sun
daa0fe1f51 Add utility decorator for registering backend dispatches based on modules 2016-12-12 15:48:48 +01:00
Brett Sun
2eb83b9993 Remove unnecessary export of base Connection from backend/ 2016-12-12 15:48:48 +01:00
Brett Sun
dabb81ac98 Replace cherrypicked class-based architecture with singledispatch 2016-12-12 15:48:48 +01:00
Brett Sun
1d0a7d2153 Remove remnants of db/ folder 2016-12-12 15:48:48 +01:00
vrde
a08ba013a0 Remove dependency from bigchaindb.config 2016-12-12 15:47:43 +01:00
vrde
87c7228bc4 Add docstring, fix name 2016-12-12 15:47:43 +01:00
vrde
26c844ec22 Add defaults, fix import 2016-12-12 15:47:43 +01:00
vrde
2fd0aeca9f Add error handling 2016-12-12 15:47:43 +01:00
Brett Sun
c9a3d01112 Move db/ files into backend/ 2016-12-12 15:47:43 +01:00
vrde
24e374b860 Cherrypick from class based architecture 2016-12-12 15:47:43 +01:00
vrde
4549e2ee4a Update BigchainDB core class 2016-12-12 15:47:43 +01:00
vrde
53fb9f3d5f Add connection Class 2016-12-12 15:47:43 +01:00
vrde
9615ac22ae Create new modules layout 2016-12-12 15:47:43 +01:00