Lex Berezhny
6952c2c07e
Revert "refactor lbrynet-daemon into modular components" ( #1286 )
...
* Revert "fix reflector test"
This reverts commit 6a15b51ac3
.
* Revert "refactor lbrynet-daemon into modular components (#1164 )"
This reverts commit 75a6ff269e
.
2018-07-05 19:05:48 -04:00
Jack Robison
75a6ff269e
refactor lbrynet-daemon into modular components ( #1164 )
...
* add daemon Component and ComponentManager classes
* convert directory and SQLiteStorage setup to be a Component
* support callbacks to component setups
* Fixed typo in ComponentManager
* convert wallet to be Component
* Use storage from session.
* Remove create_session internal function and PEP8
* Starting to convert session to its own component. Removed ref to `self.storage` from Daemon.py
* Making DHT component(broken)
* Refactored classes to reduce redundancy in getting config setting
* DHT is now it's own component
* Fixed `test_streamify` test
* Fixed regression caused by removing `peer_manager` from session
* refactor ComponentManager and Component to use instance instead of class methods
* Hash announcer, file manager, stream identifier components
* Query Handler and server components
* Reflector Component
* Fixed test_streamify(well Jack did, but ¯\_(ツ)_/¯)
* All tests now passing
* Pylint fixes
* Oops(That's all you're gonna get :-P)
* Making decorators(WIP, commit so that I don't lose work)
* Decorator made and decorating of functions done(some other changes)
* import fixes and removed temporary test function
* Fixed new broken tests from daemon refactor
* Sanitization of modules
* Reworded errors
* wallet unlock condition checks, fixed breaking changes
* Rebased on amster and other crazy stuff
* Started writing tests
* Tests for component manager
* Fix Daemon Tests
* Fixed passing mutable args in init
* Using constants instead of strings. Added CHANGELOG.md
* Now components can be skipped by setting relevant config in file.
* P-Y-L-I-N-T #angry_emoji
2018-07-05 15:21:52 -04:00
Jack Robison
b6289d101d
fix improper sorting when getting the closest peers to a hash
2018-07-02 14:54:03 -04:00
Jack Robison
61a7fd66bf
batch insert/update claims to sqlite
2018-06-20 16:08:12 -04:00
Jack Robison
df7a59f40a
skip test on appveyor
2018-06-13 14:04:14 -04:00
jleute
9735373eef
remove dependency on server_list_reverse
2018-06-12 00:10:23 +02:00
jleute
acbe3b0f65
updated test to compare original and saved config file
2018-06-12 00:06:49 +02:00
jleute
ea7ef54174
remove unused import
2018-06-12 00:06:24 +02:00
jleute
cfe5eb5d56
clean up temporary conf file
2018-06-12 00:06:21 +02:00
jleute
e00238427b
add assert to test_load_save_load_config_file test
2018-06-12 00:05:50 +02:00
jleute
5926b17871
Updated unittest for saving of server lists in the conf file
2018-06-12 00:05:49 +02:00
jleute
2e3ceedc17
added unit test for reversal of conversion of config file entries
2018-06-12 00:04:35 +02:00
Jack Robison
0ae89f01e6
Revert "WIP: feature/1098/sorted-claim-results"
2018-06-12 00:04:32 +02:00
Sergey Rozhnov
d66bce814c
refactored unit test for sort_claim_results
2018-06-12 00:03:30 +02:00
Sergey Rozhnov
c290fb5908
refactored sorting of claims and unit tests
2018-06-12 00:02:48 +02:00
Sergey Rozhnov
156b132070
implemented additional test cases for claims sorting; updated changelog
2018-06-12 00:01:36 +02:00
Sergey Rozhnov
b770b2de6a
simplified claims comparison logic; refactored unit tests
2018-06-12 00:01:36 +02:00
Sergey Rozhnov
c7ba82dc07
claim_list and claim_list_mine in Daemon return sorted results
2018-06-12 00:01:32 +02:00
Jack Robison
1d0106929c
move daemon test to the same folder as the others
2018-06-07 15:02:47 -04:00
Jack Robison
a821647fbc
pylint and appveyor
2018-06-07 15:02:47 -04:00
Jack Robison
9a63db4ec6
add protocol version to the dht and migrate old arg format for store
2018-06-07 15:02:47 -04:00
Jack Robison
7d21cc5822
pylint and more tests
2018-06-07 15:02:47 -04:00
Jack Robison
659632b66c
fix and update tests
2018-06-07 15:02:47 -04:00
Jack Robison
c521120b17
update and fix hash announcer test
2018-06-07 15:02:47 -04:00
Jack Robison
760417ff3a
pylint
2018-06-07 15:02:47 -04:00
Jack Robison
d3f4155a2b
add unit tests for contact_is_good
2018-06-07 15:02:47 -04:00
Jack Robison
950ec5bc9a
update mocks and dht tests
...
-reorganize dht tests
2018-06-07 15:02:47 -04:00
Victor Shyba
b91181e640
refactor: simplify add_completed_blob + changelog
2018-05-30 16:19:49 -03:00
Lex Berezhny
23df1d0316
Merge branch 'master' into feature/file_list_sorting
2018-05-29 22:47:09 -04:00
Jack Robison
e3265714ee
Merge remote-tracking branch 'origin/1193'
2018-05-29 15:25:17 -04:00
Sergey Rozhnov
11b882879a
predictable result sorting for claim_list
and claim_list_mine
2018-05-29 13:07:11 -04:00
Jack Robison
6d4b678b96
Revert "WIP: feature/1098/sorted-claim-results"
2018-05-22 17:15:34 -04:00
kafene
76a7cc4e58
refactor file list sorting per request
2018-05-21 00:24:18 -04:00
kafene
5069351287
refactor file_list sort to allow sorting by any field
2018-05-21 00:04:27 -04:00
kafene
72bae90e06
use range instead of xrange, list is only 10 elements and range works in python3
2018-05-21 00:04:27 -04:00
kafene
852354719f
add unit test for file list sorting
2018-05-21 00:04:27 -04:00
Sergey Rozhnov
13353bcfe4
refactored unit test for sort_claim_results
2018-05-18 18:51:28 +04:00
Sergey Rozhnov
40bcf96c3d
refactored sorting of claims and unit tests
2018-05-18 12:53:32 +04:00
Sergey Rozhnov
3d0f74c8ce
implemented additional test cases for claims sorting; updated changelog
2018-05-17 13:49:09 +04:00
Sergey Rozhnov
a7a5bb8887
simplified claims comparison logic; refactored unit tests
2018-05-17 13:36:32 +04:00
Sergey Rozhnov
208284a0f8
claim_list and claim_list_mine in Daemon return sorted results
2018-05-16 18:29:44 +04:00
Victor Shyba
ca86af736e
add batching support to get_supports and tests
2018-05-11 12:17:55 -03:00
Victor Shyba
b389e59452
replace pycrypto->cryptography on tests
2018-05-04 22:12:43 -03:00
Jack Robison
f42733ecba
fix tests
2018-05-02 15:00:57 -04:00
Jack Robison
2655797692
move docs tests to own file
2018-04-12 14:04:22 -04:00
Jack Robison
a41bbd5e27
pylint and tests
2018-03-28 18:50:18 -04:00
Jack Robison
fd7a771f66
add sanity check to CreateEncryptedFileTest
2018-03-28 15:53:49 -04:00
Jack Robison
5628d0825b
add CallLaterManager
2018-03-28 15:53:49 -04:00
Jack Robison
88970cb0a8
move peer manager class to lbrynet.core
2018-03-28 15:53:49 -04:00
Jack Robison
1eff35ce76
update dht unit tests to use task.Clock
2018-03-28 15:53:49 -04:00