Commit graph

371 commits

Author SHA1 Message Date
Jack Robison
2dd0221711
[API] support ssl, add use_https setting 2018-09-26 09:56:26 -04:00
Lex Berezhny
ca9ca09a00 wallet unit test fixes 2018-09-26 07:24:25 -04:00
Victor Shyba
1c2849235c send startup event right after setup 2018-09-25 17:49:23 -04:00
Jack Robison
f310bb6825
[API] fix account_unlock, account_decrypt, and account_encrypt commands 2018-09-25 13:10:55 -04:00
Lex Berezhny
1fb7ffd759 fix integration test to pass amount as decimal string 2018-09-24 01:25:23 -04:00
Mark Beamer Jr
3fcca4bc47 adjusted test to pass string instead of number 2018-09-24 01:25:23 -04:00
Mark Beamer Jr
12c73cf50c adjusted e2e test to use 1.0 instead of 1 per eukreign which came from lyoshenko. 2018-09-24 01:25:23 -04:00
Mark Beamer Jr
559afa465a Implemented removal of float usage. Floats converted to int internally. 2018-09-24 01:25:23 -04:00
Lex Berezhny
bcf7218b66 fix integration test 2018-09-21 23:24:50 -04:00
hackrush
ad492a09f7 Added integration tests and other review fixes 2018-09-20 19:45:06 -04:00
hackrush
e47ef741f7 Review Fixes 2018-09-09 22:00:37 -04:00
hackrush
2878716381 Tests for support and tip 2018-09-09 22:00:37 -04:00
hackrush
d99ce5f3d6 Integration test for wallet_send (#1395) 2018-09-03 11:41:30 -04:00
Lex Berezhny
e7634b74c8 improved test for setting account attributes 2018-09-03 09:09:28 -04:00
Lex Berezhny
26af01a5cc test account list for specific account 2018-09-03 09:09:28 -04:00
Lex Berezhny
1d40ec34a2 account_balance returns Decimal intead of rounded float 2018-09-03 09:09:28 -04:00
Lex Berezhny
be2ef747dc deleted commented out code 2018-09-03 09:09:28 -04:00
Lex Berezhny
8399f2ab33 account management 2018-09-03 09:09:28 -04:00
Lex Berezhny
8696cd3c27 fix for chris45 integration test 2018-09-03 09:09:28 -04:00
Lex Berezhny
0abbc20899 fix for cli test 2018-09-03 09:09:28 -04:00
Lex Berezhny
1675cc4580 renamed a bunch of wallet commands and split up the big account command 2018-09-03 09:09:28 -04:00
shyba
eab95a6246
DHT fixes from review and an attempt at removing hashing and equals (#1370)
* use int to_bytes/from_bytes instead of struct
* fix ping queue bug and dht functional tests
* run functional tests on travis
* re-add contact comparison unit test
* dont need __ne__ if its just inverting __eq__ result
2018-08-24 11:42:35 -04:00
hackrush
707ab831fd
Fake Analytics for test_cli 2018-08-24 11:42:35 -04:00
Lex Berezhny
4a8776be10
wallet integration tests fixed 2018-08-24 11:42:35 -04:00
hackrush
daae0b2836
sq return not yield, run on clear field 2018-08-24 11:42:35 -04:00
Lex Berezhny
5afd446bb3
fixing wallet unit tests test_ledger.py and test_transactions.py 2018-08-24 11:42:35 -04:00
hackrush
2b5e3204c0
Refactor client, cli and test_cli, fix delayedCalls not expiring 2018-08-24 11:42:35 -04:00
Lex Berezhny
84c91c480f
fix for unit/wallet/test_accounts.py 2018-08-24 11:42:35 -04:00
Lex Berezhny
d1f00255c1
test fixes related to headers 2018-08-24 11:42:35 -04:00
hackrush
d6c04d3586
sq Fix tests 2018-08-24 11:42:08 -04:00
hackrush
8c6c442fdd
Fixed regression in unauthenticated API client w/ integration tests 2018-08-24 11:42:08 -04:00
Lex Berezhny
49c659b832
assert integration test is actually using authentication 2018-08-24 11:42:08 -04:00
hackrush
6a8963d807
Added Authenticated API Client Integration Test 2018-08-24 11:42:08 -04:00
Victor Shyba
0841c90e6c
fix encoding on download 2018-08-24 11:42:06 -04:00
Victor Shyba
04836ea0d9
fixes from review 2018-08-24 11:40:43 -04:00
Victor Shyba
451823f33e
test_misc and test_streamify functionals on py3 2018-08-24 11:40:43 -04:00
Victor Shyba
8c3552dd34
port reflector 2018-08-24 11:40:43 -04:00
Lex Berezhny
a204f0d3e6
- replaced old lbryum function with struct.pack, per @BrannonKing review
- make copy of keys so we can modify the dictionary
2018-08-24 11:40:43 -04:00
Lex Berezhny
3594c8976d
improved output when migrating certificates 2018-08-24 11:40:43 -04:00
Lex Berezhny
23ede44bff
fix blob downloader test on py3
not tying lbrynet db to wallet db just yet
2018-08-24 11:40:43 -04:00
Lex Berezhny
0006a68bf2
fix import in blob downloder tests 2018-08-24 11:40:43 -04:00
Lex Berezhny
0349e68201
moved unit tests into unit test directory 2018-08-24 11:40:43 -04:00
Lex Berezhny
d0d5d0340d
unit tests fixed 2018-08-24 11:40:43 -04:00
Lex Berezhny
6a5d88a0d5
new fund command and automatic account creation 2018-08-24 11:40:43 -04:00
Lex Berezhny
8dc4e3be43
integration tests working again and daemon starts normally 2018-08-24 11:40:43 -04:00
Lex Berezhny
0badea874d
test_Downloder tests fixed 2018-08-24 11:40:43 -04:00
Lex Berezhny
0dd6193eaa
FakeComponent was missing __lt__ comparison operator and couldnt be put in set() 2018-08-24 11:40:43 -04:00
hackrush
a7ef8889dd
Unified CLI, python 3(WIP) (#1330)
* Added new custom cli class using aiohttp
* Proper error handling in CLI based on RPC error codes(PoC)
* Auth API working
* UnitTests
2018-08-24 11:40:43 -04:00
Lex Berezhny
f41229cb5b
tx.get_claim_id() -> txo.claim_id, claim update works now
channel_list encodes claim name and also added claim_id
fixed BlobManager foreign key error handling
2018-08-24 11:40:43 -04:00
Lex Berezhny
8ab4e3ca49
+ channel_list command works again but test_commands.py integration test is failing 2018-08-24 11:40:43 -04:00
Victor Shyba
ff8d37443e
more checks on test_transactions 2018-08-24 11:40:43 -04:00
Lex Berezhny
fcd46629c4
refactored how transactions are created, fixed list addresses command 2018-08-24 11:40:43 -04:00
Victor Shyba
9ad9eb083b
fix integration test NBO encoding 2018-08-24 11:40:43 -04:00
Lex Berezhny
4669507880
Transaction.abandon() now requires list of outputs 2018-08-24 11:40:43 -04:00
Lex Berezhny
47bb634035
abandon claims and chris45 epic adventure 2018-08-24 11:40:43 -04:00
Lex Berezhny
10b34d6b33
unnecessary list() added during py3 port
instead of recursive bytes2unicode use a proper JSONEncoder to conver bytes->unicode for json.dumps()
removing excessive isinstance(data, bytes) checks
py3: / -> // and list() around .items() that gets modified in loop
moved lbrynet.undecorated to where its actually used and hopefully we can delete it eventually
removed build/upload_assets.py, travis can do all this now
2018-08-24 11:40:43 -04:00
Lex Berezhny
f061ca2b15
integration tests no longer mock Blob, BlobManager and Session 2018-08-24 11:40:43 -04:00
Lex Berezhny
bc24dbea29
refactoring of DHT tests and fixed encoding bug when dealing with bytearray 2018-08-24 11:40:43 -04:00
Lex Berezhny
2d4bf73632
working on unit tests 2018-08-24 11:40:43 -04:00
Victor Shyba
31630a84be
reduce entropy on DHT test suite 2018-08-24 11:40:43 -04:00
Victor Shyba
b25d592d99
more dht fixes and most of functional tests 2018-08-24 11:37:53 -04:00
Lex Berezhny
af2aeaa66b
fixing unit tests 2018-08-24 11:37:53 -04:00
Lex Berezhny
855fd8bf9a
moved test_customLogger.py 2018-08-24 11:37:53 -04:00
Lex Berezhny
5597d45aed
got integration tests to work again with rebased branch 2018-08-24 11:37:53 -04:00
Victor Shyba
78c8c8e64d
more porting, plus some functional tests working 2018-08-24 11:37:53 -04:00
Victor Shyba
99be38604a
attempt to fix tests isolation 2018-08-24 11:37:53 -04:00
Lex Berezhny
d35d340613
fixing unit tests
fixing integration tests
skip running functional tests on travis until they are fixed
2018-08-24 11:37:53 -04:00
Victor Shyba
e1e7be63b8
more fixes on dht functionals 2018-08-24 11:37:53 -04:00
Victor Shyba
e1314a9d1e
working functional test_contact_rpc + more string bans 2018-08-24 11:37:53 -04:00
Lex Berezhny
ba80c0e594
py2(iteritems, itervalues) -> py3(items, values) 2018-08-24 11:37:53 -04:00
Lex Berezhny
fbdbcc8070
assertEquals() -> assertEqual() 2018-08-24 11:37:53 -04:00
Lex Berezhny
24a872885a
xrange() -> range() 2018-08-24 11:37:53 -04:00
Lex Berezhny
971252d5d1
undo simplejson commit 2018-08-24 11:37:53 -04:00
hackrush
c01716a6c0
Using simplejson and fixed some encodes and decodes 2018-08-24 11:37:53 -04:00
Lex Berezhny
318c369752
made tests into a package again and moved mocks.py back to root tests dir 2018-08-24 11:37:53 -04:00
Victor Shyba
cea3b7630c
partial dht functional tests porting to py3 2018-08-24 11:37:53 -04:00
Victor Shyba
19211d4417
make sure bencoding works for bytes, not strings 2018-08-24 11:37:53 -04:00
Victor Shyba
c312d1b3a6
all unit/dht green on py3 2018-08-24 11:37:53 -04:00
Victor Shyba
e4ea1ccbfb
test_node green on py3 2018-08-24 11:37:53 -04:00
Victor Shyba
5b35c4e8f0
port dht.distance ~> py3 2018-08-24 11:37:53 -04:00
Victor Shyba
07a12b66e8
port dht.contacts ~> py3 2018-08-24 11:37:53 -04:00
Lex Berezhny
a28c9d09c8
- fix and improvements related to the two balance command account_balance and wallet_balance
- working CommonWorkflowTests integration test
- pylint, unit and integration test fixes
- switch integration tests to use async/await
2018-08-24 11:37:53 -04:00
Lex Berezhny
f589410496
tests 2018-08-24 11:37:53 -04:00
Lex Berezhny
aecc7c6643
resolve works in py3!!!!!11111oneoneone 2018-08-24 11:37:53 -04:00
Lex Berezhny
9636ca22e7
fixing unit tests 2018-08-24 11:37:53 -04:00
Lex Berezhny
0f90dee224
faililng test 2018-08-24 11:37:53 -04:00
Lex Berezhny
076af7ef43
py3 compatibility updates 2018-08-24 11:37:53 -04:00
Lex Berezhny
43bef9447c
progress on publish command: py3 porting and integration tests 2018-08-24 11:37:53 -04:00
Victor Shyba
39d7f2e46e
port cryptblob test to py3 2018-08-24 11:37:53 -04:00
Lex Berezhny
315661208d
integration test publishes actual file instead of just sources 2018-08-24 11:37:53 -04:00
Lex Berezhny
c544e26206
publish integration test works 2018-08-24 11:37:53 -04:00
Lex Berezhny
62e77c69f5
jsonrpc_publish takes amount in lbc, not satoshi 2018-08-24 11:37:53 -04:00
Victor Shyba
036663ae62
adds get_claims_by_ids and fix a test name 2018-08-24 11:37:53 -04:00
Victor Shyba
b62321689d
test proofs 2018-08-24 11:37:53 -04:00
Lex Berezhny
70a7ca95fe
wip 2018-08-24 11:37:53 -04:00
Lex Berezhny
f85e61d8ed
run functional tests first
run two integration tests on travis 😱
reduce integration test verbosity
2018-08-24 11:37:53 -04:00
Lex Berezhny
d81502e191
unit test fixes, balance/utxos filters out claims, abandoning claims 2018-08-24 11:37:53 -04:00
Lex Berezhny
17738ad248
import fixes due to tests directory moving 2018-08-24 11:37:53 -04:00
Lex Berezhny
03d2d0e237
fixed import paths as a result of moving the tests 2018-08-24 11:37:53 -04:00
Lex Berezhny
545451a829
moved ./lbry/tests to ./tests 2018-08-24 11:37:53 -04:00