Commit Graph

3350 Commits (iljah/patch-1)
 

Author SHA1 Message Date
Ilja ba731a9282
Handle missing settingsversion.
Otherwise I get this with python 3.8.7 when starting BM: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' (assuming changes in https://github.com/Bitmessage/PyBitmessage/pull/1746)
3 years ago
Dmitri Bogomolov 6f9b66ddff
Qt test for UDP setting 3 years ago
Dmitri Bogomolov 79efacffb1
Replaced lost UDPSocket.maxTimeOffset by constants.MAX_TIME_OFFSET
Closes: #1696
3 years ago
Dmitri Bogomolov 6ee6989df2
A minimal test for UDP. Restore expected default settings in tearDown(). 3 years ago
Dmitri Bogomolov 5f9d507717
announceInterval is for AnnounceThread, not UDPSocket 3 years ago
Dmitri Bogomolov 6168d63699
Replace formatting socket.error by exc_info in network.udp 3 years ago
Dmitri Bogomolov 8ff8e0e2cb
Make it possible to disable UDP announcing in settings 3 years ago
Dmitri Bogomolov ef849d2dd3
Handle old psutil in TestProcess 3 years ago
Dmitri Bogomolov d8cf148d4a
Replaced print operator by print function in network.asyncore_pollchoose
and unmaintained modules.
3 years ago
Dmitri Bogomolov 2fe2f17688
Don't run tests when build deb 3 years ago
Dmitri Bogomolov 671df69303
Work around deprecation of platform.dist() in recent python 3 years ago
Dmitri Bogomolov 81645eadef
Remove import from debug from openclpow, remove shebang, format 3 years ago
Dmitri Bogomolov e77238fa07
Support tox and request more warnings:
- make separate tests runner - tests.py; python setup.py test still works
  - tox.ini with coverage config
  - -b: issue warnings about comparing bytearray with unicode
  - export PYTHONWARNINGS=all on stage install
3 years ago
Dmitri Bogomolov 0f8528cc48
Fix python3 issues in test_blindsig:
- simplify imports
 - signatures are of type bytes
 - chain kwarg of pyelliptic.ECCBlindChain is bytes
3 years ago
Dmitri Bogomolov faed885c34
Fix python3 issues in test_crypto:
- use bytes for python3
 - encode the result of arithmetic.privtopub
 - add test for arithmetic.base10_multiply
3 years ago
Dmitri Bogomolov 5bd3bd4711
Make addresses module available for testing with python3:
- remove import from debug
 - use divmod and bytes
3 years ago
Dmitri Bogomolov 5976a449e2
test_randomtrackingdict: revert bytes to string for python3 3 years ago
Dmitri Bogomolov da8bd36614
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
3 years ago
Dmitri Bogomolov d05255625b
Universal pathmagic returns app dir; activated in setup for python3 3 years ago
Dmitri Bogomolov f8844f4d74
Use common.skip_python3() to skip tests modules not supporting python3 3 years ago
Dmitri Bogomolov b3c341951d
Add normal exit in depends if detected python3 3 years ago
Dmitri Bogomolov 6029ec85b6
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.
3 years ago
Peter Šurda 574b60ed0e
Add Dockerfile for running test
- run ./run-tests-in-docker.sh to run travis tests locally
3 years ago
Dmitri Bogomolov d35c284e13
Move desktop plugin initialization to updateStartOnLogon(); Fixes: #1735 3 years ago
Dmitri Bogomolov c51108e867
Entry point 'desktop' for plugins managing desktop environment;
desktop_xdg will do it with pyxdg. Fixes: #857
3 years ago
Dmitri Bogomolov 74e039de5d
Added Network category in desktop file 3 years ago
Dmitri Bogomolov 2f5d6214ff
Move addressbook test to bitmessageqt.tests because it uses Qt 3 years ago
Dmitri Bogomolov 26057be6ff
A test for listening port 8444 3 years ago
Dmitri Bogomolov 5052602c21
Add test for BITMESSAGE_HOME 3 years ago
Dmitri Bogomolov 265fb932a8
Instruct git to use LF as line ending for knownnodes.dat test pattern 3 years ago
Dmitri Bogomolov 5b71bd1931
Format and simplify bitmessagemain.spec, exclude unused libs and files 3 years ago
surbhicis d36e7615a9
remove kivy specification file along with component changes of version from upstream 3 years ago
navjot f381721bec
remove TestProcessProto import from test_openclpow module 3 years ago
Dmitri Bogomolov 448e9e2f36
Prevent adding bootstrap servers to knownnodes when received in addr 3 years ago
Dmitri Bogomolov 3108115570
Shorten Bootstrapper methods:
handle_close() and set_connection_fully_established()
3 years ago
Dmitri Bogomolov d6cab9935d
Try to find bootstrap server in knownnodes after bootstrapping 3 years ago
Dmitri Bogomolov 2ac4b1fece
A separate test for dontconnect setting 3 years ago
Dmitri Bogomolov 2b5f605857
Set close_reason for exceptions in network.tls 3 years ago
Dmitri Bogomolov 9540d5fabe
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
3 years ago
Dmitri Bogomolov e9073d736a
Another possible approach for connection check 3 years ago
Dmitri Bogomolov d9d1cdb5d8
A separate test for connection to bootstrap servers 3 years ago
navjot 7b8bf082ff
add Gpu skip condition and setupclass in test_openclpow module 3 years ago
navjot 1612f9c778
test case for openclpow module 3 years ago
navjot 9c5d329c90
replace print with logger and remove unused file 3 years ago
surbhicis 6ffb912f2a
detach kivy version from upstream 3 years ago
navjot edc4660c6d
imported helper_addressGenerator module 3 years ago
navjot bfdb78151c
updated addressbook table in class_sqlThread module 3 years ago
navjot f146500b58
written test case for addressbook 3 years ago
navjot 42037502ab
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
3 years ago
navjot 09439b4a0d
added general exception handler 3 years ago