Commit graph

357 commits

Author SHA1 Message Date
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
Akinwale Ariwodola
2abe85ba25 moved tests into the lbrynet package 2017-09-28 18:21:26 +01:00
Kay Kurokawa
4941d1d31d
test when you have a v1 blob reflect before a stream reflect over the same blobs 2017-09-22 14:46:28 -04:00
Kay Kurokawa
474ce21a51
add more tests in test_reflector, make sure stream info is not affected for blob client v1 2017-09-22 14:39:39 -04:00
Kay Kurokawa
4d5ba94a6e
add tests for checking stream info on reflector server 2017-09-22 14:39:37 -04:00
Jack Robison
6cbe86d057
rename is_validated() to get_is_verified() to distinguish from verified property 2017-09-20 14:02:34 -04:00
Jack Robison
8419e1e1d5
change some ValueErrors to IOErrors 2017-09-20 13:59:26 -04:00
Jack Robison
14636a5d38
split up HashBlob.py into lbrynet.blob 2017-09-20 13:59:24 -04:00
Jack Robison
7d6e62eb77
consolidate HashBlob and BlobFile 2017-09-20 13:59:24 -04:00
Kay Kurokawa
f816cc1637
add some unit tests for BlobFile.close() 2017-09-20 13:59:23 -04:00
Kay Kurokawa
e92321a9c1
have BlobFile.open_for_writing() return the writer instead of write and close functions 2017-09-20 13:59:23 -04:00
Kay Kurokawa
637d1f265b
add unit tests for HashBlob.py classes 2017-09-20 13:59:21 -04:00
Jack Robison
c53a189605
remove TempBlob, clean up blob classes, use FBP and BytesIO in BlobFile 2017-09-20 13:59:18 -04:00
Kay Kurokawa
e52d707948 fix bug found in test_EncryptedFileCreator.py, need to yield for blob_manager.setup() 2017-09-13 14:16:07 -04:00
Jack Robison
3f42716706
update tests 2017-09-07 14:01:06 -04:00
Jack Robison
5f9509db96
don't use google finance 2017-09-07 13:55:36 -04:00
Kay Kurokawa
e2e28338f3 in ConnectionManager, be consistent and initialize conf values in __init__ 2017-08-28 10:46:47 -04:00
Kay Kurokawa
a31b6b192f Create an optional way of downloading by head blob first in ConnectionManager 2017-08-28 10:46:47 -04:00
Kay Kurokawa
0639bb9865 add support for should_announce feature 2017-08-28 10:43:57 -04:00
Kay Kurokawa
c0a2c6c830 remove blob manager reliance on HashBlob classes 2017-08-28 10:43:57 -04:00
Jack Robison
d1b7de1807
persist dht node id 2017-08-16 21:18:10 -04:00
Umpei Kay Kurokawa
690ef15ba1 Merge pull request #756 from lbryio/fix_integer_resolve
Fix error when resolving an integer
2017-08-14 22:52:20 -04:00
Umpei Kay Kurokawa
34ed2467f2 Merge pull request #829 from lbryio/fix_abandon
Expose abandon by txid/nout in Daemon
2017-08-14 22:51:39 -04:00
Kay Kurokawa
b2f0dedefb fix error when resolving true/false/floats and also prevent other keys from being parsed as boolean, int, or float in CLI 2017-08-14 18:33:41 +02:00
Zestyr
0c2d049c90 Fix error when resolving an integer
Fixes #588
2017-08-14 12:15:08 -04:00
Alex Grintsvayg
2927f40ccf fix tests 2017-08-09 19:10:12 -04:00
Kay Kurokawa
4e8d8dfc23 Expose abandon by txid/nout in Daemon 2017-08-08 13:55:03 -04:00
Jack Robison
89e7d7a44d
Merge branch 'master' into conf_reflect_options 2017-08-04 15:16:51 -04:00
Kay Kurokawa
9d92fba02e add ability to control re-reflects through config 2017-08-03 23:44:20 -04:00
Jack Robison
7b93073f7b
Merge branch 'master' into remove_tempblobmanager 2017-08-03 22:26:35 -04:00
Kay Kurokawa
30689b09e6 fix tests to not use TempBlobManager and use tempfile to create temporary directories for DiskBlobManager 2017-07-27 13:38:35 -04:00
hackrush
ecd602e5fb Added validation for currencies.
Now while setting currency via API/CLI it is checked that the user has
not entered any currency other that LBC, BTC or USD.

Fixes #778
2017-07-24 16:38:15 -04:00
Zestyr
3c40957575 Fix unit test 2017-07-17 21:51:01 +02:00
hackrush
f7b6a09110 Updated max_key_fee_setting
Added an option to disable max key fee check.
Did the required docs changes.
2017-07-14 14:09:30 -04:00
Kay Kurokawa
73927e2b57 improve tests for GetStream 2017-07-05 16:33:02 -04:00
Kay Kurokawa
03db114ba8 fix test_BlobManager race condition 2017-07-04 17:23:56 -04:00
Kay Kurokawa
7fb5b04bb4 add directory encoding test in test_conf 2017-07-03 16:01:28 -04:00
Kay Kurokawa
00b6808ded fix functional tests for windows 2017-07-02 21:58:11 -04:00
Kay Kurokawa
55c90e0657 make sure DBEncryptedFileMetadataManager closes db connection 2017-07-02 21:58:02 -04:00
Kay Kurokawa
99c2130be7 fix for test_blobmanager 2017-07-02 21:57:54 -04:00
Kay Kurokawa
f71696ee50 delete download_directory argument for API command get 2017-06-30 09:39:49 -04:00
Kay Kurokawa
3479c6ea8d add docstring and unit test for CryptBlob.py 2017-06-28 12:13:24 -04:00
Jack Robison
967cc4c63c rename lbrynet.lbrynet_daemon to lbrynet.daemon 2017-06-25 21:25:41 -04:00
Jack Robison
eba74b97bd rename lbrynet.lbryfilemanager to lbrynet.file_manager 2017-06-25 21:04:04 -04:00
Jack Robison
1ec3218f18 rename lbrynet.lbryfile to lbrynet.lbry_file 2017-06-25 21:03:37 -04:00
Kay Kurokawa
613278de12 fix test_misc, check before deleting 2017-06-23 10:24:27 -04:00
Kay Kurokawa
14b2bb3019 add test for BlobManager 2017-06-23 10:24:27 -04:00
Kay Kurokawa
a1c99594b3 add tests for CLI flags 2017-06-14 15:28:59 -04:00
Kay Kurokawa
711c4f3196 Various improvements, fixes, and tests for GetStream class 2017-06-14 15:05:43 -04:00
Jack Robison
9c88f820f9 add change_address param to publish 2017-06-12 13:43:15 -04:00
Jack Robison
ea0c6eca32 multi resolve 2017-06-09 14:48:55 -04:00
Kay Kurokawa
a577f38d80 add claim address as an option to publish API command 2017-06-04 19:26:28 -04:00
Kay Kurokawa
c3f61b3e69 improve tests for ExchangeRateManager 2017-06-02 11:52:57 -04:00
Jack Robison
9f87d502c3 update currency conversion 2017-06-02 11:52:51 -04:00
Jack Robison
96927ec985 remove lbrynet.metadata 2017-06-02 11:50:50 -04:00
Kay Kurokawa
58dd576adc add CLI docopt parsing tests to integration tests 2017-06-01 15:39:08 -04:00
Kay Kurokawa
257d025d98 add integration test 2017-06-01 15:26:03 -04:00
Jack Robison
57c3d2590c update arg parsing to use docopt 2017-05-30 17:43:59 -04:00
Alex Grintsvayg
2353dbcb00 refactor analytics 2017-04-26 14:19:03 -04:00
Alex Grintsvayg
e19e2f3609 stop checking github for new versions 2017-04-26 14:18:30 -04:00
Alex Grintsvayg
0a3e00b276 Revert "will this fix tests?"
This reverts commit 0b668fb1dd.
2017-04-21 12:15:32 -04:00
Alex Grintsvayg
0b668fb1dd will this fix tests? 2017-04-21 12:07:11 -04:00
alexliebowitz
fca79139ff Return full LBRY ID and installation ID in jsonrpc_status()
Better to let the client decide whether to display the short or long version
2017-04-14 11:26:05 -04:00
Jack Robison
e6f92a2dc7 fix fee tests, whitespace 2017-04-12 17:43:00 -04:00
Jack Robison
389ee2ad70 fix stream_cost_estimate 2017-04-11 01:13:10 -04:00
Jack Robison
a87834bacc skip test_parallel_connections 2017-04-10 14:21:46 -04:00
Alex Grintsvayg
54c29d4a8d formatting 2017-04-10 13:45:43 -04:00
Alex Grintsvayg
a2eb0cad33 delete live lbrylive livestreaming code 2017-04-10 13:45:43 -04:00
Jack Robison
40374ec202 use lbryio api for price data instead of bittrex 2017-04-07 19:33:13 -04:00
Jack Robison
e9cfbea75f update lbrynet api and tests 2017-04-07 14:04:13 -04:00
Alex Grin
bf7882d393 Merge pull request #583 from lbryio/keyerror_fix
fix KeyError bug in dht
2017-04-06 16:09:39 -04:00
Kay Kurokawa
931038d478 bug fixes for lbryschema integration 2017-04-04 20:30:51 -04:00
Kay Kurokawa
ca041b5dc4 lbryschema integration 2017-04-04 20:30:51 -04:00
Alex Grintsvayg
22f57f6490 add test to reproduce keyerror 2017-04-04 15:10:46 -04:00
Kay Kurokawa
3af5e9dc5c connect to multiple peers at once in manage 2017-03-27 15:11:15 -04:00
Alex Grintsvayg
8fa2524e54 properly handle true/false cli args 2017-03-23 17:44:12 -04:00
Alex Grintsvayg
3f4a4728e6 fixed my silly mistakes 2017-03-09 07:58:36 -05:00
Umpei Kay Kurokawa
da99f3f22b Merge pull request #493 from lbryio/filemanager_related_tests
Filemanager related unit tests
2017-03-08 11:53:46 -05:00
Alex Grintsvayg
68f5588bd9 make loggly logs less verbose 2017-03-08 11:23:28 -05:00
Jack Robison
a7c2ad470c fix tests 2017-03-08 09:36:32 -05:00
Kay Kurokawa
f600038712 work on unit tests for file management related classes 2017-03-08 09:15:06 -05:00
Kay Kurokawa
eae8f8a00e add random_lbry_hash() function to tests.util 2017-03-08 09:15:06 -05:00
Jack Robison
9744287370 change attribute "uri" to "name" 2017-03-07 18:29:44 -05:00
Kay Kurokawa
9755e9b11f Improvements to exchange rate manager 2017-03-03 12:50:47 -05:00
Kay Kurokawa
7128b6401e adding missing __init__.py file in test folder 2017-02-27 13:10:23 -05:00
Kay Kurokawa
824fbcc25a adding timeout to ClientProtocol 2017-02-27 13:02:35 -05:00
Job Evers‐Meltzer
04b36e2252 Merge pull request #486 from lbryio/electron
Electron
2017-02-21 13:19:55 -06:00
Alex Grintsvayg
2add545ab6 unbreak tests 2017-02-21 13:48:05 -05:00
jobevers
1d30ae447a Merge branch 'master' into electron 2017-02-21 10:47:28 -06:00
jobevers
ff5980dfca fix broken version check 2017-02-21 09:36:08 -06:00
Kay Kurokawa
3522f9af7d use utils.call_later in DHTHash Announcer 2017-02-20 16:48:29 -05:00
Kay Kurokawa
c27fe7af31 use utils.call_later in ConnectionManager 2017-02-20 16:48:29 -05:00
jobevers
723105157f check lbry-electron for releases 2017-02-16 14:18:32 -06:00
jobevers
85390302e2 still more fixes 2017-02-16 14:13:01 -06:00
Job Evers-Meltzer
e2db99f7ab allow requests that match allowed-origin 2017-02-16 11:44:23 -05:00
Jack Robison
8bba5c04db update tests and changelog 2017-02-16 09:12:57 -05:00
jobevers
f7c105fd80 fixes 2017-02-15 06:48:59 -06:00
jobevers
9e2cda0cdc remove more upload_allowed arguments 2017-02-15 06:48:58 -06:00
Job Evers-Meltzer
439a840700 Better log in tests on failure 2017-02-15 06:48:58 -06:00
Umpei Kay Kurokawa
37cc257555 Merge pull request #465 from lbryio/dht_hash_announcer_tests
Adjust hash reannounce based on queue size , test for DHTHashAnnouncer, immediately announce new blobs
2017-02-13 21:08:48 -05:00
Jack Robison
aa8375673b Merge pull request #477 from lbryio/inlinecallbacks-refactor
Refactor publish, file manager, and file downloader
2017-02-13 17:42:54 -05:00
Kay Kurokawa
34f5bc93ae adding immediate announce option to hash announce 2017-02-13 17:27:10 -05:00
Kay Kurokawa
aa45b0e121 Fixes for other tests now that BlobManager relies on DHTHashAnnouncer.get_next_announce_time() 2017-02-13 17:27:10 -05:00
Kay Kurokawa
8e0f71ac74 Make hash reannounce time adjusted based on the queue of hashes yet to be announced, add test for DHTHashAnnouncer 2017-02-13 17:27:10 -05:00
Jack Robison
7720724ec0 reflect lbry_files in looping call in EncryptedFileManager
-remove ManagedEncryptedFileDownloader._reupload

-clean up reflector functions in Daemon, move to reflector.reupload

-check ConnectionLost in reflector client

-close sd blob file handle when it wont be sent (otherwise read handle stays open)

-log reflector sd info

-give reflector client factory a lbry file
2017-02-13 15:13:37 -05:00
Kay Kurokawa
4f87e87d3e Adding connection manager tests, and modifying connection manager to be testeable, fix bug where failed connection was not marked as down 2017-02-13 12:17:27 -05:00
Jack Robison
d053db8dfd add uri to stream reflector for better logging 2017-02-08 14:28:16 -05:00
Jack Robison
4c76e1b98f add blob reflector and v1 tests 2017-02-06 15:56:00 -05:00
Kay Kurokawa
a5e8c561e4 Revert "adding connection manager tests, and modifying connection manager to be testeable"
This reverts commit 7b6e233d22, as it was an accidental push to master
2017-02-01 11:59:36 -05:00
Kay Kurokawa
7b6e233d22 adding connection manager tests, and modifying connection manager to be testeable 2017-02-01 11:52:16 -05:00
Alex Grintsvayg
86ba7ffd5c explicitly list jsonrpc params in function signature. add jsonrpc tests 2017-01-30 09:58:28 -08:00
Kay Kurokawa
eebf32362a add unit tests for wallet interface changes to balances 2017-01-26 11:41:39 -05:00
Alex Grintsvayg
cac8267e85 updates, more refactoring for greater clarity 2017-01-17 12:29:09 -05:00
Alex Grintsvayg
267c6cbaca refactor conf.settings 2017-01-16 22:32:54 -05:00
Alex Grintsvayg
628defa891 remove extraneous ellipses in messages 2017-01-11 15:39:28 -05:00