vrde
5b084edaf4
Break out of the loop once a connection is established
...
closes #1068
2017-01-30 10:56:46 +01:00
Rodolphe Marques
391da2cf60
Added tests
2017-01-25 12:36:08 +01:00
libscott
a7a163fd3c
Merge pull request #1083 from bigchaindb/single-quotes
...
Add flake8-quotes checker and cleanup double quotes
2017-01-24 12:07:29 +01:00
Scott Sadler
bd048a3115
add flake8-quotes checker and cleanup double quotes
2017-01-23 17:30:37 +01:00
Rodolphe Marques
f12264773c
bigchaindb configure now requires a positional backend argument.
...
Created and fixed tests.
Updated `b` fixture
2017-01-23 16:49:59 +01:00
libscott
ad2abcf723
Merge pull request #1065 from bigchaindb/1021/http_transactions_list
...
1021/http transactions list
2017-01-23 16:06:07 +01:00
Rodolphe Marques
e7ffcf5705
Added replicaset name to bigchaindb config ( #1063 )
...
* Added replicaset name to bigchaindb config
* changed travis replSet to match bigchaindb default
* Updated initialize_replica_set
It now initializes the replica set with the name provided by the
bigchaindb config file.
* initialize_replica_set is now called when creating a mongodb connection.
This way we are sure that a replica set exists when we return a
connection.
* Moved the initialize replica set logic to the connection.
* update the config documentation
2017-01-20 14:05:28 +01:00
Scott Sadler
dbb3414fd0
generalise get_txids_by_asset_id into get_txids_filtered and remove get_transactions_by_asset_id
2017-01-18 15:42:47 +01:00
Brett Sun
0751b2bf0b
Merge pull request #1029 from bigchaindb/feat/api/votes
...
Implement votes endpoint
2017-01-17 14:42:02 +01:00
Sylvain Bellemare
4d6df06236
Resolves #948
2017-01-16 07:12:25 -05:00
Rodolphe Marques
e52cb40edb
Some more tests for mongodb code ( #1036 )
...
* Some more tests for mongodb code
Cleanup connection code
* pep8 fixes
2017-01-13 10:25:45 +01:00
Rodolphe Marques
5abe6dd7ea
Added tests to the mongodb changefeed ( #1035 )
...
* Added tests to the mongodb changefeed
* pep8 and typo fixes
2017-01-13 10:18:58 +01:00
Rodolphe Marques
fa8608b242
small fix write_vote
2017-01-12 10:41:55 +01:00
Sylvain Bellemare
1cfd3de60e
Fix flake8 errors in tests
2017-01-11 05:13:27 -05:00
Rodolphe Marques
c91eff70e5
Feat/960/test mongodb queries ( #1030 )
...
* Created tests to mongodb queries
Small fix to queries
* cleanup pytest markers
2017-01-10 16:49:30 +01:00
Rodolphe Marques
aa6d4fdcc8
small fix to test
2017-01-10 15:31:16 +01:00
Rodolphe Marques
7f05974f0f
Added a secondary index with uniqueness constraint in backlog.
...
Several test fixes
2017-01-09 13:25:42 +01:00
Brett Sun
2882bee48e
Small flake8 fixes for tests ( #987 )
2016-12-22 11:57:13 +01:00
Rodolphe Marques
9c0d696b7e
Better unittests
...
Simplify code
2016-12-21 16:52:57 +01:00
Rodolphe Marques
5fedabe586
fix test
2016-12-21 15:55:29 +01:00
Rodolphe Marques
1dd6c748b9
Merge remote-tracking branch 'origin/master' into feat/980/initialise-replica-set-mongo
2016-12-21 15:54:02 +01:00
Rodolphe Marques
4a14c7c8f1
Initialize replica set for mongodb when running bigchaindb init
2016-12-21 15:53:25 +01:00
Sylvain Bellemare
a269375278
Use pytest custom marker "bdb"
...
note that the marker, although invoked for the entire module, will be
applied for each function
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
fa79fe6783
Add session scope test setup for config and db
...
resolves #966
2016-12-20 20:37:28 +01:00
Rodolphe Marques
47ca91355f
Moved tests from rethinkdb test_run_query_util to test_connection
2016-12-20 14:32:53 +01:00
Rodolphe Marques
39c25b951f
added tests for mongodb connection
2016-12-20 14:25:24 +01:00
Rodolphe Marques
050990aac1
Created tests for mongodb schema
...
Removed some unused secondary indexes
2016-12-19 15:45:02 +01:00
Brett Sun
b4063dd9ad
More test abstractions for multiple databases ( #950 )
...
* Remove unnecessary import of rethinkdb in a test
* Move test_run_query_util as a rethinkdb-specific test
* Move rethinkdb-specific command tests to own file
* Add __init__.py to new test folders
* Move command tests to their own test module
* Move fixtures out of command tests into separate conftest for commands
* Fix some small flake8 issues with rethinkdb's test_run_query_util
* Add pytest ignore hook to filter out test dirs that are not for the requested backend
* Move backend-specific tests in tests/db/ to tests/backend/
2016-12-16 22:17:13 +01:00
Rodolphe Marques
c1a5d5e86f
Merge remote-tracking branch 'origin/master' into docker-mongo
2016-12-16 12:54:42 +01:00
Rodolphe Marques
14a2c13a06
Removed get_old_transactions
...
Fixed tests.
2016-12-14 13:12:47 +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
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
Brett Sun
8caeed54bf
Fix backend module dispatch error tests broken from renaming
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
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