Commit Graph

3361 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 7a076e92fe
fix py3 import error 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 bb433ac58b
Replaced print operator by print function in network.asyncore_pollchoose
and unmaintained modules.
2021-04-07 15:47:40 +05:30
Dmitri Bogomolov d46bda07e3
Don't run tests when build deb 2021-04-07 15:47:40 +05:30
Dmitri Bogomolov b4247409c6
Work around deprecation of platform.dist() in recent python 2021-04-07 15:47:39 +05:30
Dmitri Bogomolov c1b533f8db
Remove import from debug from openclpow, remove shebang, format 2021-04-07 15:47:39 +05:30
Dmitri Bogomolov 52146b8394
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
2021-04-07 15:47:38 +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 28a602536f
Make addresses module available for testing with python3:
- remove import from debug
 - use divmod and bytes
2021-04-07 15:47:37 +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 0e9674bce1
Universal pathmagic returns app dir; activated in setup for python3 2021-04-07 15:47:36 +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 dba54841bf
Add normal exit in depends if detected python3 2021-04-07 15:47:35 +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
Peter Šurda 1adb593cfa
Add Dockerfile for running test
- run ./run-tests-in-docker.sh to run travis tests locally
2021-04-07 15:47:35 +05:30
Dmitri Bogomolov 0c4f3e0dc0
Move desktop plugin initialization to updateStartOnLogon(); Fixes: #1735 2021-04-07 15:47:34 +05:30
Dmitri Bogomolov da1dcfd62f
Entry point 'desktop' for plugins managing desktop environment;
desktop_xdg will do it with pyxdg. Fixes: #857
2021-04-07 15:47:34 +05:30
Dmitri Bogomolov 4c214b945b
Added Network category in desktop file 2021-04-07 15:47:34 +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
Dmitri Bogomolov 30a78901f9
Instruct git to use LF as line ending for knownnodes.dat test pattern 2021-04-07 15:47:32 +05:30
Dmitri Bogomolov 7497cc5704
Format and simplify bitmessagemain.spec, exclude unused libs and files 2021-04-07 15:47:32 +05:30
Muzahid 42007d02ad
fix DB thread issue 2021-04-07 15:47:31 +05:30
surbhicis 3fa531c223
remove kivy specification file along with component changes of version from upstream 2021-04-07 15:47:31 +05:30
Muzahid 0dfc4dac7b
test commit 2021-04-07 15:47:31 +05:30
Muzahid bb38c158fe
Refactoring of database upgrade mechanism 2021-04-07 15:47:30 +05:30
Muzahid 583e5910fe
proper inherit remove return from __init__ 2021-04-07 15:47:30 +05:30
Muzahid 31c5e4ff38
remove no in case 2021-04-07 15:47:30 +05:30
Muzahid cdc2977331
Migrate Db with respect to their versions 2021-04-07 15:47:29 +05:30
navjot 86001ce749
remove TestProcessProto import from test_openclpow module 2021-04-07 15:47:29 +05:30
Dmitri Bogomolov f23487a155
Prevent adding bootstrap servers to knownnodes when received in addr 2021-04-07 15:47:28 +05:30
Dmitri Bogomolov 3feea1ee3f
Shorten Bootstrapper methods:
handle_close() and set_connection_fully_established()
2021-04-07 15:47:28 +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 f75268bc56
Set close_reason for exceptions in network.tls 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