Sylvain Bellemare
57b14c3062
Rename db_name to dbname
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
7db02fa024
Get config from bigchaindb not from fixture
...
the fixture no longer returns the config, and is meant only to set the
config
2016-12-20 20:37:28 +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
f6a55c78af
Implement test utils function to flush mongo db
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
18d5a49097
Take env var value if set for db port
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
11271738f3
Remove unnecessary fixture
...
it was needed when the root fixture was using autouse
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
83d37d699f
Merge pull request #979 from bigchaindb/bug-mongodb-write-block
...
fix mongodb write_block
2016-12-20 19:07:15 +01:00
Brett Sun
151d1c5a0c
Suggest starting multi-line imports on the next line to pass flake8 ( #923 )
2016-12-20 18:30:42 +01:00
Rodolphe Marques
71bb63376f
fix mongodb write_block without thouching mongodb code
2016-12-20 18:04:38 +01:00
libscott
7e33f2bd52
Tx ID as Asset ID ( #926 )
...
* Allow AssetLinks to be used in place of Assets in the Transaction Model and enforce `Transaction.transfer()` to only take an AssetLink
* Remove AssetLink's inheritance from Asset
* Remove id from the Asset model
* Fix get_txids_by_asset_id query for rethinkdb after removing asset's uuid
Because `CREATE` transactions don't have an asset that contains an id
anymore, one way to find all the transactions related to an asset is to
query the database twice: once for the `CREATE` transaction and another
for the `TRANSFER` transactions.
* Add TODO notice for vote test utils to be fixtures
* Update asset model documentation to reflect usage of transaction id
* Fix outdated asset description in transaction schema
2016-12-20 17:28:15 +01:00
Rodolphe Marques
1d7a8e3369
Merge pull request #977 from bigchaindb/feat/958/test-mongo-connection
...
Test mongodb connection
2016-12-20 14:48:30 +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
Scott Sadler
d80de928a5
wording change in Transaction.create documentation
2016-12-20 14:15:05 +01:00
Troy McConaghy
8fa6789745
Merge pull request #965 from bigchaindb/move-all-runtests-docs-to-one-place
...
Consolidated all tests-related docs in one place
2016-12-20 14:02:52 +01:00
Rodolphe Marques
61cfe1b370
Merge pull request #971 from bigchaindb/feat/959/test-mongodb-schema
...
Created tests for mongodb schema
2016-12-20 13:56:32 +01:00
Brett Sun
ad6f267055
Add instructions for rebuilding docker images after upgrading
2016-12-20 13:52:46 +01:00
Troy McConaghy
8989731ae0
Merge pull request #976 from bigchaindb/update-azure-quickstart-template-docs-again
...
Updated the docs for the Azure Quickstart Template
2016-12-20 11:46:07 +01:00
troymc
854d2974f5
Removed instructions for the case when PR #2884 wasn't merged
2016-12-20 11:33:47 +01:00
libscott
b2cb426097
Merge pull request #962 from bigchaindb/remove-asset-keywords
...
Remove asset keywords
2016-12-20 10:02:42 +01:00
Troy McConaghy
ed3b0b8b9c
Merge pull request #961 from bigchaindb/fix-http-api-docs-intro
...
Fixed HTTP API docs re/ API Endpoint
2016-12-19 17:48:51 +01:00
Brett Sun
8470854769
Add extra set of backticks for code-blocks in inputs and outputs docs
2016-12-19 16:14:58 +01:00
Brett Sun
b64026441b
Add changes from @ttmc's suggestions
2016-12-19 16:12:09 +01:00
Brett Sun
d412c934b1
Add extra sentence to inputs and outputs docs describing divisible assets
2016-12-19 16:04:31 +01:00
Brett Sun
727e9822b5
Move asides in inputs and outputs docs to be sphinx notes
2016-12-19 16:04:31 +01:00
Brett Sun
a0487493ae
Small wording and typo fixes for inputs and outputs docs
2016-12-19 16:04:31 +01:00
Rodolphe Marques
050990aac1
Created tests for mongodb schema
...
Removed some unused secondary indexes
2016-12-19 15:45:02 +01:00
Scott Sadler
3f2966072e
change creators to tx_signers in Transaction.create
2016-12-19 15:42:11 +01:00
Brett Sun
7070c39aca
Fix small typo in AmountError's docstring
2016-12-19 15:38:30 +01:00
troymc
8d0ff25a39
Don't include the top-level bigchaindb/ folder in path names
2016-12-19 15:34:58 +01:00
Scott Sadler
92fee24395
fix forgotten test inputs-outputs
2016-12-19 13:44:20 +01:00
Scott Sadler
9002066d4a
fix documentation link error re inputs-outputs
2016-12-19 12:42:54 +01:00
Scott Sadler
6fb48dd172
fix TransactionLink.to_uri to use Output
2016-12-19 12:29:29 +01:00
Scott Sadler
33f05f7f6b
re-frame documentation on crypto conditions around inputs and outputs
2016-12-19 12:29:29 +01:00
Brett Sun
02002bd5f8
Reword some transaction schema descriptions based on feedback
2016-12-19 12:29:29 +01:00
Scott Sadler
f4257030fc
dont override input builtin in models.py
2016-12-19 12:29:29 +01:00
Scott Sadler
4e17fe5c3d
change fulfills.idx to fulfills.output
2016-12-19 12:29:29 +01:00
Scott Sadler
d479a186a4
address wording problems re inputs/outputs in transaction-model.rst docs
2016-12-19 12:29:29 +01:00
Scott Sadler
b20a770b02
restore accidentally deleted tests
2016-12-19 12:29:29 +01:00
Brett Sun
2f4da6a32f
Extra renames and small fixes for inputs-outputs ( #952 )
...
* Fix typos pointed out in review by @ttmc
* Reword description of an input in the transaction schema
* Re-add removed comment in transaction model
* Fix small typos in some comments in the transaction model
* Add trailling commas to a multiline dict in the transaction model tests
* Fix small things with server docs changes
* Add description of public keys' association with conditions in transaction concept docs
* Reword description of Transaction.create's and args
* Rename output_uri to output_condition_uri
* Fix hardcoded class name vs. self.__class__
* Rename instances of 'out' with 'output'
* Rename instances of and with to avoid name clash with built-in
* Remove unnecessary renaming of cryptoconditions.Fulfillment import in transaction model
* Remove instances of in transaction model
* Remove usages of fulfillment in cases where input makes more sense
* Reword docstrings for init methods in transaction models
* Rename usages of condition where output is now a better fit
* Add descriptions to TransactionLink's txid and idx in schema
* Minor correction to output idx description in transaction yaml
2016-12-19 12:29:29 +01:00
Scott Sadler
3d495a8987
update description of TRANSFER @ttmc
2016-12-19 12:29:29 +01:00
Scott Sadler
4b235f1f72
rename condition and fulfillment to output in test names where neccesary
2016-12-19 12:29:29 +01:00
Scott Sadler
05e8d6e28e
fix documentation issue in transaction schema file
2016-12-19 12:29:29 +01:00
Scott Sadler
27ad7b5092
s/fulfillments/inputs/g && s/conditions/outputs/g (docs changes)
2016-12-19 12:29:29 +01:00
Scott Sadler
ed55b3984e
s/fulfillments/inputs/g && s/conditions/outputs/g (code changes)
2016-12-19 12:29:29 +01:00
Scott Sadler
e2e3ecb9f4
put back owners_before and a bugfix in tx model
2016-12-19 12:29:29 +01:00
libscott
9bb8b33d72
Change 'spends' to 'fulfills' in tx model
2016-12-19 12:29:29 +01:00
Scott Sadler
26fe27e6cb
spec change for inputs/outputs
2016-12-19 12:29:29 +01:00
Sylvain Bellemare
2b9a351912
Rename owner_after to public_key
2016-12-19 04:31:05 +01:00