ea6f23e596
test_randomtrackingdict: revert bytes to string for python3
2021-04-07 15:47:37 +05:30
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
eaab6d3f5f
Use common.skip_python3() to skip tests modules not supporting python3
2021-04-07 15:47:36 +05:30
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
552733778b
Move addressbook test to bitmessageqt.tests because it uses Qt
2021-04-07 15:47:33 +05:30
b0cc81d643
A test for listening port 8444
2021-04-07 15:47:33 +05:30
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
1b198e9a4a
Try to find bootstrap server in knownnodes after bootstrapping
2021-04-07 15:47:28 +05:30
1a3a7089cc
A separate test for dontconnect setting
2021-04-07 15:47:27 +05:30
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
9b27e6734a
Another possible approach for connection check
2021-04-07 15:47:26 +05:30
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
695140d57d
Save exceptions in the main thread in excQueue
2020-11-04 16:24:52 +02:00
db11d6331f
Optimize setUpClass() and tearDownClass() in test_process
2020-11-03 17:14:00 +02:00
96a784b58b
Merged PeterSurda/teardown-test1:
...
- reset BMConfigParser before reading config file
- enable threads name check on posix systems
- check singleton.lock in TestProcessProto.setUpClass()
2020-11-03 17:14:00 +02:00
b65f2d154a
Common basic cleanup procedure
2020-11-03 17:14:00 +02:00
1bcffd2853
Make TestLogger a subclass of TestProcessProto
2020-11-02 18:01:51 +02:00
cf4e812334
Allow TestProcess subclasses set home dir, use mkdtemp for test_config
2020-11-02 18:01:51 +02:00
affdb2fdc0
Solve problem with subprocess.call() on windows:
...
- uncomment console_scripts (only for windows) to get exe
- replace call() with Popen() to avoid blocking
2020-11-02 18:01:50 +02:00
80831754b3
Fail in TestProcessProto.setUp if bitmessage process dies
2020-11-02 11:08:28 +02:00
b650e97edc
Fix statuses for sendBroadcast
2020-10-28 15:25:46 +02:00
85f306e5f6
Covered more API commands by tests, listed uncovered in TODO
2020-09-14 13:11:43 +03:00
6c85bdd498
Also check sent broadcast status and it's presence in sent messages
2020-09-14 13:11:43 +03:00
fabbccbeac
Rewrote test_user_password() for xmlrpclib.ProtocolError:
...
it would be very difficult to return string from BMXMLRPCRequestHandler
2020-09-14 13:11:42 +03:00
d56191ebba
Move knownnodes module into network package
2020-07-21 16:21:43 +03:00
5805840613
A test case for protocol with the test for TCPConnection.local
2020-07-21 16:21:43 +03:00
d6953eb450
New package: bitmessageqt.tests
...
any test cases from it will be added to tests.core test suite if possible,
e.g. PyQt is functional. TestSupport - minimal test case for support module
to reproduce #1633 .
2020-06-15 12:06:31 +03:00
2a62fb79cc
Add test for decoding the version message
2020-05-22 12:58:00 +03:00