Commit Graph

106 Commits

Author SHA1 Message Date
Muzahid 59311f3f31
update core changes reuse sql_helper in testcase 2021-04-07 15:47:45 +05:30
Muzahid a3e52099bc
update test and thread 2021-04-07 15:47:44 +05:30
Muzahid e41d200e81
add sql file for the query 2021-04-07 15:47:44 +05:30
Muzahid ff84454a95
change as per creae_function 2021-04-07 15:47:44 +05:30
Muzahid 27e07954a0
refactor methods and add create_function and its test 2021-04-07 15:47:43 +05:30
Muzahid 56dea46d98
refactor the versioning code and apply sql files behalf of query 2021-04-07 15:47:43 +05:30
Muzahid a38bcb2f04
rever changes 2021-04-07 15:47:42 +05:30
Muzahid ce0f99a8c2
refactor the sqlthread test cases and fix py3 issue 2021-04-07 15:47:42 +05:30
Muzahid 17d40ef43c
test case for versioning 10,9,8,1 2021-04-07 15:47:41 +05:30
Muzahid aed71c11ab
test case for sqlthread version 1 2021-04-07 15:47:41 +05:30
Muzahid b6155b1af3
fix db migration issue 2021-04-07 15:47:41 +05:30
Dmitri Bogomolov f2b4c97d1d
Handle old psutil in TestProcess 2021-04-07 15:47:40 +05:30
Dmitri Bogomolov 52a1ac21a8
Fix python3 issues in test_blindsig:
- simplify imports
 - signatures are of type bytes
 - chain kwarg of pyelliptic.ECCBlindChain is bytes
2021-04-07 15:47:38 +05:30
Dmitri Bogomolov 8e8697d9b2
Fix python3 issues in test_crypto:
- use bytes for python3
 - encode the result of arithmetic.privtopub
 - add test for arithmetic.base10_multiply
2021-04-07 15:47:38 +05:30
Dmitri Bogomolov ea6f23e596
test_randomtrackingdict: revert bytes to string for python3 2021-04-07 15:47:37 +05:30
Dmitri Bogomolov eede298a22
Fix python3 issues in pyelliptic:
- use dotted imports, remove unneeded shebangs
 - openssl._OpenSSL._version is of type bytes
 - use b'\x00' literal instead of chr(0) in eccblind and test_openssl
 - use // and divmod in arithmetic to fit PEP238:
   https://docs.python.org/3/whatsnew/2.2.html#pep-238-changing-the-division-operator
2021-04-07 15:47:37 +05:30
Dmitri Bogomolov eaab6d3f5f
Use common.skip_python3() to skip tests modules not supporting python3 2021-04-07 15:47:36 +05:30
Dmitri Bogomolov 9dabd31470
Add python 3.7. Use general shebangs in scripts to test with python3;
Use 2.7_with_system_site_packages for python2 to run qt tests
as suggested in Travis doc instead of bypassing virtualenv by shebang.
2021-04-07 15:47:35 +05:30
Dmitri Bogomolov 552733778b
Move addressbook test to bitmessageqt.tests because it uses Qt 2021-04-07 15:47:33 +05:30
Dmitri Bogomolov b0cc81d643
A test for listening port 8444 2021-04-07 15:47:33 +05:30
Dmitri Bogomolov f5fa7d47ad
Add test for BITMESSAGE_HOME 2021-04-07 15:47:33 +05:30
navjot 86001ce749
remove TestProcessProto import from test_openclpow module 2021-04-07 15:47:29 +05:30
Dmitri Bogomolov 1b198e9a4a
Try to find bootstrap server in knownnodes after bootstrapping 2021-04-07 15:47:28 +05:30
Dmitri Bogomolov 1a3a7089cc
A separate test for dontconnect setting 2021-04-07 15:47:27 +05:30
Dmitri Bogomolov 2a8e91e6a7
Fixing tor related tests:
- knownnodes.cleanupKnownNodes() should set knownNodesActual = False
   if there are no nodes in stream 1 (repeated bootstrapping)
 - set socksproxytype before _initiate_bootstrap()
 - wait 5 sec in _initiate_bootstrap() to be sure all connections are closed
 - plugins do not work on travis - use socksproxytype = SOCKS5,
   check tor presence by trying to bind on port 9050
 - successfull connection to 3 onion nodes in 6 minutes is not guaranteed -
   check that bitmessage doesn't try non-onion nodes
2021-04-07 15:47:27 +05:30
Dmitri Bogomolov 9b27e6734a
Another possible approach for connection check 2021-04-07 15:47:26 +05:30
Dmitri Bogomolov 93c86bc8d5
A separate test for connection to bootstrap servers 2021-04-07 15:47:26 +05:30
navjot 0283339138
add Gpu skip condition and setupclass in test_openclpow module 2021-04-07 15:47:25 +05:30
navjot 27383ff635
test case for openclpow module 2021-04-07 15:47:25 +05:30
navjot 07a1ce9914
imported helper_addressGenerator module 2021-04-07 15:47:24 +05:30
navjot 7825229444
updated addressbook table in class_sqlThread module 2021-04-07 15:47:24 +05:30
navjot c61436a5ca
written test case for addressbook 2021-04-07 15:47:23 +05:30
navjot 4e1990b63e
fixed Own address should not save in address book issue
- removed redundant code

- written test case for address book own address saving

- fixed CQ issues

- added helper_addressbook module

- Fixed CQ issue of src.helper_addressbook module

- fixed travis-ci checks failing issue
2021-04-07 15:47:23 +05:30
navjot 7a010441c3
Fixed flake8 CQ issues 2020-12-30 20:01:33 +05:30
navjot 46e2f04488
move randomtrackingdict.py out side the network dircetory 2020-12-29 13:12:22 +05:30
navjot a2ab0a02dc
written test case randomtrackingdict dict module 2020-12-28 16:01:23 +05:30
navjot 9fe4ad0489
test case for testing old knownnodes pickle
-test case for testing old knownnodes pickle

-fixed CQ for tests.core module

-implemented shutil.copyfile feature and use small size knownnodes.dat file in test_pattern dir

-remove unnecessary code

-Fixed CQ of tests.core module
2020-12-21 22:50:38 +05:30
navjot 1c304125e8
fixed CQ issues 2020-11-21 13:53:10 +05:30
navjot 4681d37377
validate address in insert method and improve test cases 2020-11-21 13:53:10 +05:30
navjot 61f7f32dfc
removed unused code and return ackdata from inset method insted of msgid 2020-11-21 13:53:10 +05:30
navjot beaece254c
omitted unused code and optimized it 2020-11-21 13:53:10 +05:30
navjot 89254064f6
fixed default variables in insert method 2020-11-21 13:53:10 +05:30
navjot 5eff9d6a04
Fixed CQ for tests.core module 2020-11-21 13:53:10 +05:30
navjot a9e9f25b5d
change helper_sent.insert methods 2020-11-21 13:53:10 +05:30
navjot 0ec15d1d4d
Test case for insert method default values 2020-11-21 13:53:10 +05:30
navjot 1bc3fe7b42
added checks in helper_sent module 2020-11-21 13:53:10 +05:30
navjot b7d920d529
Fixed CQ for test/core.py module 2020-11-21 13:53:10 +05:30
navjot 0023fc4b3d
Written test case for helper_sent.insert method 2020-11-21 13:53:10 +05:30
Dmitri Bogomolov 695140d57d
Save exceptions in the main thread in excQueue 2020-11-04 16:24:52 +02:00
Dmitri Bogomolov db11d6331f
Optimize setUpClass() and tearDownClass() in test_process 2020-11-03 17:14:00 +02:00