ef849d2dd3
Handle old psutil in TestProcess
2021-02-18 17:15:56 +02:00
f8844f4d74
Use common.skip_python3() to skip tests modules not supporting python3
2021-02-17 17:11:25 +02:00
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.
2021-02-17 17:11:24 +02:00
26057be6ff
A test for listening port 8444
2021-02-11 16:34:43 +02:00
5052602c21
Add test for BITMESSAGE_HOME
2021-02-11 16:34:38 +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
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
7b9824afc9
Separate method for stopping the bitmessage process and new test case
...
for settings in the generated config, which particularly checks that
extralowdifficulty settings are not applied to daemon.
2019-04-22 12:19:09 +03:00
acea683139
Test SIGTERM signal handling
2019-03-11 18:14:25 +02:00
ca567acab3
Put uploads into a separate thread
...
- instead of being processed in the ReceiveQueue thread, uploads are now done
in a dedicated thread. Only the parsing is done in ReceiveQueue thread.
- the UploadThread is modelled based on the DownloadThred, but simpler.
- it checks for intersection attack, eliminates duplicates and restricts the
write buffer size to 2MB (may still grow slightly higher if too many big
objects are requested, but the absolute limit appears to be about 4.5MB in the
worst case scenario).
- the restriction of the write buffer may cause some upload throttling (to
about 2MB per second per connection), but can be optimised later
- fixes #1414
2018-12-20 20:34:01 +01:00
c8a781c7c5
Marked use of random, subprocess and xmlrpclib in tests
...
for skipping by bandit
2018-10-22 17:18:24 +03:00
d8b4682ee9
Style fixes and docstrings for tests
2018-10-22 17:18:23 +03:00
51df0507e2
Fixed signal files creation
2018-10-22 17:18:23 +03:00
c49c131929
New test case class hierarchy:
...
- TestProcessProto has common setUpClass and tearDownClass methods
- TestProcess is for testing the PyBitmessage process (using psutil)
2018-10-22 17:18:23 +03:00