527 Commits

Author SHA1 Message Date
tim
8e8bc90742 Add unspents endpoint 2016-12-15 17:17:18 +01:00
tim
f78c90ada8 Add to_uri for TransactionLink 2016-12-15 17:17:18 +01:00
Sylvain Bellemare
56feefe3f4 Re-work test fixtures - iteration one 2016-12-15 15:54:15 +01:00
Sylvain Bellemare
65dab4f2eb Group std lib imports together (pep 8) 2016-12-15 15:51:09 +01:00
Ryan Henderson
d8256d50f2 remove rethinkdb calls (#953)
* remove rethinkdb calls from db/conftest.py
2016-12-15 14:16:30 +01:00
Rodolphe Marques
14a2c13a06 Removed get_old_transactions
Fixed tests.
2016-12-14 13:12:47 +01:00
Rodolphe Marques
976a3e8254 Merge remote-tracking branch 'origin/master' into feat/905/abstract-db-changefeed 2016-12-14 12:43:47 +01:00
Ryan Henderson
f725279a51 remove old tx recovery on block process start (#903) 2016-12-14 12:33:47 +01:00
Rodolphe Marques
530681c905 Re-added the get_changefeed methos in the pipelines.
Fixed tests.
Fixed typos.
2016-12-13 15:11:25 +01:00
Rodolphe Marques
d246a1498f Added some tests for changefeed generics
pepify import
googlify docstring
2016-12-13 12:46:52 +01:00
Sylvain Bellemare
b87baaaa1d Test backend.schema.init_database 2016-12-13 11:59:57 +01:00
Rodolphe Marques
e303e355db Delete outdated pipelines/utils.py
Reorganized and fixed tests.
2016-12-13 11:17:24 +01:00
Rodolphe Marques
134f9e85a0 Updated vote pipeline to use the changefeed abstraction
Fixed tests.
2016-12-13 11:16:37 +01:00
Rodolphe Marques
f09285d32f Fixed some code typos
Changed election pipeline to use the new changefeed abstraction
2016-12-13 11:16:29 +01:00
Rodolphe Marques
8266dfadb0 Fixed typos
Fixed failing test
2016-12-13 11:15:49 +01:00
Sylvain Bellemare
2f4ee4d8b9 Set default of database-backend to env var if set 2016-12-13 10:22:39 +01:00
Sylvain Bellemare
8a68e24e69 Abstract db layer cherrypick docs (#932)
* Add README.md to tests/ to describe test structure and pytest customizations

* Add package-level docstrings to backends

* Add README.md explaining the backend architecture

* Small improvements to docstrings in backend modules

* Restructure the backend automodule docs

* Add more docstrings to backend connections

* Add init to base backend Connection class to document expected interface

* Reword the backend/README.md docs
2016-12-12 18:28:43 +01:00
Sylvain Bellemare
24a701096d Filter out block id 2016-12-12 17:38:41 +01:00
Sylvain Bellemare
ff583c5546 Test generic backend functions 2016-12-12 17:38:28 +01:00
Scott Sadler
448ee87944 flatten transaction - code changes 2016-12-12 16:07:41 +01:00
Scott Sadler
32c8b65f08 Remove metadata uuid 2016-12-12 16:07:41 +01:00
Brett Sun
345fc27a39 Remove durability from all database-related calls 2016-12-12 16:07:41 +01:00
Sylvain Bellemare
b9cfc5d9a2 Sync up with master 2016-12-12 15:53:56 +01:00
Sylvain Bellemare
49fca5cf3f Fix tests 2016-12-12 15:53:56 +01:00
vrde
95b353459d Add pytest option to switch backend in tests 2016-12-12 15:53:56 +01:00
vrde
0a14f97a18 Add option to switch backend 2016-12-12 15:53:56 +01:00
vrde
3c3c1ce880 Improve tests for class initialization 2016-12-12 15:53:56 +01:00
Brett Sun
d6703e10f3 Remove unnecessary 'backend' setting from test's configuration as it's provided now by a pytest option 2016-12-12 15:53:56 +01:00
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
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
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
Brett Sun
daa0fe1f51 Add utility decorator for registering backend dispatches based on modules 2016-12-12 15:48:48 +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
vrde
53fb9f3d5f Add connection Class 2016-12-12 15:47:43 +01:00