Lex Berezhny
2dbf96da81
blob downer test fixes
2019-01-22 18:04:17 -05:00
Lex Berezhny
9ccb3fa2a3
unit/test_cli tests
2019-01-22 18:04:17 -05:00
Lex Berezhny
a6cd53b97c
test_Daemon.py uses /tmp for data_dir
2019-01-22 18:04:17 -05:00
Lex Berezhny
7a28171a72
conf no longer global
2019-01-22 18:04:17 -05:00
Lex Berezhny
150bcb1116
new configuration manager, first pass
2019-01-22 18:04:17 -05:00
Jack Robison
3a86fc6680
refactor exchange rate manager to use asyncio
2019-01-22 11:34:49 -05:00
Lex Berezhny
bf8e32ebd2
remove custom logging
2019-01-19 16:30:19 -05:00
Victor Shyba
be6448b74f
fix str/bytes confusion from resolve/claimdict on certificate_id
2019-01-17 23:24:58 -05:00
Victor Shyba
b707ee4844
encode and decode detached signatures from claim dict
2019-01-17 23:24:58 -05:00
Victor Shyba
abf94357eb
tests and fixes for sig validation on undecode-able claims
2019-01-17 23:24:58 -05:00
Victor Shyba
36aded3830
store original payload for signing and verifying
2019-01-17 23:24:58 -05:00
Victor Shyba
d7ebf50602
detached as a parameter instead of class attribute
2019-01-17 23:24:58 -05:00
Victor Shyba
6339224980
tests for detached signatures
2019-01-17 23:24:58 -05:00
hackrush
6c8cbc1b9e
added additional fields to uri parser
2019-01-11 15:10:22 -05:00
Lex Berezhny
72c0acf269
test_HTTPBlobDownloader
2019-01-07 21:56:05 -05:00
Lex Berezhny
3fdcb80960
minor test fixes
2019-01-07 21:56:05 -05:00
Lex Berezhny
eb16cb0aa8
fix test_HashBlob
2019-01-07 21:56:05 -05:00
Lex Berezhny
b5340505e5
fix blobmanager tests and dont run conf tests
2019-01-07 21:56:05 -05:00
Lex Berezhny
4bb8129bb7
fixing tests to work with asyncio daemon
2019-01-07 21:56:05 -05:00
Jack Robison
fb66b68bc8
fix directory cli args, update help message
2018-12-14 15:51:11 -05:00
Jack Robison
b8b0d8b1ac
refactor default directory setup, remove lbrynet.androidhelpers
...
fixes https://github.com/lbryio/lbry/issues/1606
2018-12-12 17:46:10 -05:00
Oleg Silkin
458bddcb65
Removes Faker from Dependencies ( #1687 )
...
* Removes faker import and its usage
* Replaces data generated with faker with static data
* Drops faker as a dependency & removes extras require section
* Removes installation instruction for the test dependencies in setup.py
2018-12-11 20:19:58 -05:00
Jack Robison
a6128ac8a2
fix https://github.com/lbryio/lbry/compare/fix-1674
2018-12-04 17:35:40 -05:00
Jack Robison
434c7b57b1
tests
2018-11-26 11:36:28 -05:00
Oleg Silkin
f9ff3e5d14
Removes third-party mock dependency ( #1661 )
...
* Removes mock from setup.py dependencies
* Refactors name resetTime to reset_time
* Replaces import mock with built-in unittest.mock
* Refactors imports to separate built-in, external, and project modules
2018-11-25 11:12:30 -05:00
Oleg Silkin
b3fde9d78d
Removes six
From Project ( #1660 )
...
* Replaces `six` urllib with python 3's urllib
* Replaces `six`'s int2byte method with native `bytes` class
* Removes edge case testing for python2 vs python3
* Removes useless object inheritance
* Uses native io.BytesIO instead of six.BytesIO
* Removes six from dependencies
2018-11-22 23:24:21 -05:00
Lex Berezhny
b2d1bddcfe
update to latest torba
2018-11-19 20:34:38 -05:00
Jack Robison
d704336f20
absolute imports
2018-11-09 16:52:46 -05:00
Jack Robison
88095af1cd
move system_info.py into lbrynet.extras
2018-11-09 16:52:46 -05:00
Jack Robison
e9efd9f68a
improve get_external_ip
2018-11-09 16:52:46 -05:00
Jack Robison
bc5824b8bc
better setup of custom logger class
2018-11-09 16:52:46 -05:00
Jack Robison
a6b643bb34
move files
2018-11-09 16:52:42 -05:00
Jack Robison
488b976734
move HashAnnouncer.py to extras
2018-11-09 14:16:33 -05:00
Jack Robison
253912b52e
fix skipping dht, peer_protocol_server, and hash_announcer components
...
-move PeerFinder and PeerManager initialization to the ComponentManager
-remove dht component requirement from all but the hash_announcer component. This allows running the file manager component without either of the server components.
2018-11-09 14:16:33 -05:00
Lex Berezhny
264e6744e1
updated references after moving conf to lbrynet.extras.daemon.conf
2018-11-04 20:25:24 -05:00
Lex Berezhny
9255bb5abe
updated references after moving analytics to lbrynet.extras.daemon.analytics
2018-11-04 20:25:24 -05:00
Lex Berezhny
171c080d33
updated references lbrynet.file_manager -> lbrynet.blob
2018-11-04 20:25:24 -05:00
Lex Berezhny
c1a9cd93ee
updated references lbrynet.crypstream -> lbrynet.blob
2018-11-04 20:25:24 -05:00
Lex Berezhny
f4c6dc90c9
updated references lbrynet.core -> lbrynet.p2p
2018-11-04 20:25:24 -05:00
Lex Berezhny
b6d986cb40
updated references after moving lbrynet/database into lbrynet/extras/daemon
2018-11-04 20:25:24 -05:00
Lex Berezhny
eee964cfa0
updated references to daemon after moving it to extras
2018-11-04 20:25:24 -05:00
Lex Berezhny
8ca2b75c80
lbryumx -> lbrynet.extras.wallet.server
2018-11-04 10:50:15 -05:00
Victor Shyba
e46f0e2444
fix namespace lbryschema->lbrynet.schema
2018-11-04 10:50:15 -05:00
Victor Shyba
00bc7995c4
move lbryschema/tests/ into tests/unit/schema/
2018-11-04 10:50:15 -05:00
Lex Berezhny
699c057f2d
upgrading to new torba
2018-11-04 02:28:36 -05:00
GwanYeong Kim
2f47a3758e
Remove unused Python modules in tests/unit/test_cli.py
2018-10-30 10:32:34 -04:00
Jack Robison
416472c5d8
log stream update failure
2018-10-26 13:01:46 -04:00
Hugo
d0a7ca841b
Upgrade unit tests to use more useful asserts
2018-10-23 12:02:10 -04:00
Hugo
2e6c848c39
Upgrade Python syntax with pyupgrade --py36-plus
2018-10-23 12:02:10 -04:00
Jack Robison
0ed56bbe1a
tests
2018-10-18 18:12:50 -04:00
Hugo
3f704be85c
Fix spelling
2018-10-18 14:40:37 +03:00
Victor Shyba
4748cbf654
fix tests for cost estimate
2018-10-17 14:16:00 -04:00
Lex Berezhny
64e306801d
updated wallet to use asyncio
2018-10-16 17:09:21 -04:00
Tomasz Kopeć
9e2e53147e
--conf option improvements ( #1455 )
...
* Conf file improvements
* Add test for loading config file
2018-10-10 13:44:51 -04:00
Lex Berezhny
bc8251696e
fix cli version test
2018-10-09 11:37:49 -04:00
Lex Berezhny
9d9916548b
added channel/signature annotation to all TXOs, support for pagination
2018-10-08 15:02:52 -04:00
Lex Berezhny
22df26eeb6
dewies_to_lbc and lbc_to_dewies
2018-10-03 18:06:22 -04:00
Lex Berezhny
7b9ff3e8b5
updated with torba refactoring and working claim_send_to_address
2018-10-03 12:32:01 -04:00
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
Jack Robison
f310bb6825
[API] fix account_unlock, account_decrypt, and account_encrypt commands
2018-09-25 13:10:55 -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
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
Lex Berezhny
5afd446bb3
fixing wallet unit tests test_ledger.py and test_transactions.py
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
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
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
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
fcd46629c4
refactored how transactions are created, fixed list addresses command
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
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
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
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
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
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
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
9636ca22e7
fixing unit tests
2018-08-24 11:37:53 -04:00
Lex Berezhny
076af7ef43
py3 compatibility updates
2018-08-24 11:37:53 -04:00
Victor Shyba
39d7f2e46e
port cryptblob test to py3
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
d81502e191
unit test fixes, balance/utxos filters out claims, abandoning claims
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
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
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
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
14b2bb3019
add test for BlobManager
2017-06-23 10:24:27 -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