Commit Graph

167 Commits

Author SHA1 Message Date
813492291816
e6ecaa5e7d
Add API endpoint to return inbound and outbound connections 2022-11-05 02:26:02 -04:00
58a9ee24dd
Cover the rest used methods of BMConfigParser with tests 2022-10-19 16:03:57 +03:00
8e05e4a178
A test case for the network start checks that:
- all the threads are started,
  - it opens connections and updates stats.

A base class for partial run essentially mimics bitmessagemain.
2022-09-17 04:19:42 +03:00
78e16e61a0
Build tests into the windows bundle if DEBUG=True is set in pyinstaller spec 2022-08-07 17:36:21 +03:00
722f275172
Skip TestProcess.test_listening() on wine 2022-08-07 17:36:21 +03:00
a3214b8eea
Define TestSocketInet class
doing helper_startup.fixSocket() in setUpClass - to be inherited by
any test case using protocol.encodeHost().
2022-08-07 17:35:49 +03:00
20ce69b337
Add enableAddress API command and a check for sending from disabled address 2022-07-26 03:28:05 +03:00
b25ed553bc
Format for PEP8 test_api and samples (almost) 2022-07-26 03:28:05 +03:00
f311d9d25c
Add a check for sendBroadcast API command with nonexisting address 2022-07-26 03:28:05 +03:00
3be996eb64
Replace obsolete pycrypto with pycryptodome to support jammy:
pycrypto fails to install, openssl 3 has no ripemd160 hash.
Also skip test_crypto.TestHashlib if openssl 3 is found.
2022-05-30 21:32:56 +03:00
ae5a264df0
Update BMConfigParser and add test to enable/disable identity 2022-05-19 13:29:31 +05:30
3254d8f288
Add test sql scripts for sqlthread 2022-03-16 12:58:54 +05:30
e778ee9231
Add a test for BMConfigParser.setTemp() 2022-02-21 19:21:35 +02:00
858705357a
Format test_config
- for PEP8 compatibility, rewrite copypasted docstring,
  - remove unused configfile slot, move pylint hint,
  - define TestConfig.setUp(), creating BMConfigParser obj,
2022-02-21 19:18:36 +02:00
7d2b13e4ac
Format bmconfigparser:
- remove meaningless comments, rename strange args, fix line lengths,
  - revert BMConfigParser.addresses() entanglement,
  - revert BMConfigParser read_file -> readfp alias.
2022-02-21 18:46:37 +02:00
a5773999fe
Refactor BMConfigParser as a Module variable 2022-02-15 17:12:43 +05:30
4ec5eaf016
Kivy Mock backend added 2022-01-25 13:26:37 +05:30
bfe7dd16e9
Reproduce the bug described in #1898 using test_addressbook() 2021-12-11 16:32:48 +02:00
154ecc410c
Added custom error message in message_inbox testcase 2021-12-06 19:17:59 +05:30
5771f21cfb
Added undeleteMessage function in helper_inbox & respective method in api.py and separated inbox & trash testcases 2021-12-02 19:11:38 +05:30
16175278a8
Merged inbox & trash functions related testcases into single testcase method 2021-12-02 19:11:38 +05:30
21d5a6ce8f
Instead of print added getAllInboxMessages values in assertEqual message parameter 2021-12-02 19:11:37 +05:30
62ffe96bc8
Added anouncement addr comment, replaces assertTrue with assertEqual & added print for getAllInboxMessages to check build failure 2021-12-02 19:11:37 +05:30
21cb4e516d
Added testmode check for HandleclearUISignalQueue & HandleGetStatusBar functions, replaced sample_inbox_msg_receiver_address by sample_deterministic_addr4 2021-12-02 19:11:36 +05:30
9a194f0bae
Added statusBar, getAllInboxMessages, getAllInboxMessageIds, getInboxMessageById, getInboxMessagesByReceiver, trashMessage, trashInboxMessage & addSubscription, methods testcases & updated related functions 2021-12-02 19:11:35 +05:30
93c7cfbf63
test_base58: added tests for a single character, zero and invalid data 2021-11-11 15:56:05 +02:00
a94ff1efd3
New test case for packets data, so far here are the tests for:
varint, protocol.encodeHost(), protocol.CreatePacket() - only checks magic
2021-11-11 15:35:42 +02:00
ed52b41464
Add a test for base58 and use samples everywhere in test_addresses 2021-11-11 15:35:41 +02:00
3052a3c2c2
Fixed import issues, updated message.py functions and added testcases for messagetypes 2021-11-10 13:32:11 +05:30
e8b80f6117
Updated queue.Full logger.error to logger.warning and added bare except for subprocess.check_output function call for windows 2021-10-06 12:35:48 +05:30
84c545ad8e
Updated specific exceptions instead of bare except ignore comments 2021-10-06 12:35:47 +05:30
ec52d2dae6
Added ignore comments for bare except warnings 2021-10-06 12:35:46 +05:30
9ba26cacae
Updated pylint ignore comments 2021-09-28 21:11:45 +05:30
a3dceb8b3e
Reformated _reset method placement, Fixed pylint issues & reverted pylint ignore comment delete changes 2021-09-28 20:44:32 +05:30
4f9593a553
Added readfp function for python3, updated StringIO & readfb based changes in setUp, teadDown and test_reset functions 2021-09-28 15:56:21 +05:30
14f1c15945
Fixed test_config.ini file path error 2021-09-28 15:56:20 +05:30
aa955acf04
added testcase for _reset()
skip python 3

ported to python 3, fixed deprecation warnings

Fixes: #1754

fixed absolute imports

corrected test for _reset()

few changes

fixed some issues in test_reset() & bmconfigparser

fixed code quality

modified test case for _reset()

fixed test case of _reset() for py3

fixed compatibilty with python2

fixed code quality

changed _reset test

added test_config file & fixed test case for reset()

fixed for python3

removed pdb

few changes

added config dict

fixed code quality

fixed code quality

fixed code quality

fixes for focal & bionic build error

added print thread name

commented test_reset()

added some print to debug, will remove later

fixed code quality

added setUp & tearDown method

added docstring

modified code

fixed code quality

modified setUp() & tearDown() method

few changes in tearDown()

cleaned code

Added PEP8 imports blank line & moved test_config.ini to test_pattern folder
2021-09-28 15:56:20 +05:30
4a2222aacd
Updated code quality base except warning code changes in class_singleCleaner.py and added test for safeGetFloat in bmconfigparser.py
Added BMConfigParser.safeGetFloat method, updated BMConfigDefaults & added specific exceptions

Added test for safeGetFloat, removed float parsing & updated logger warning

Reverted get to safeGetFloat changes
2021-09-08 13:48:59 +05:30
e03b1dfa38
Workaround https://bugs.python.org/issue19528 2021-09-05 15:09:20 +03:00
dd20917fea
Use xvfb only on Linux with xvfbwrapper 2021-09-05 15:09:20 +03:00
083451c8ac
Move _fixSocket from bitmessagemain to helper_startup,
so it can be used in test_networkgroup.
2021-09-05 15:09:05 +03:00
568c0a606f
python_prctl is only for linux, so
- make requirements platform dependent
 - skip test_process_name in TestProcess
2021-09-03 17:28:39 +03:00
c6f516101c
A rudimentary test case for l10n module 2021-08-30 21:19:46 +03:00
df3781a13f
A rudimentary test case for qidenticon 2021-08-26 14:18:37 +03:00
e79a0e21e9
Updated _get_readline function file open by with block
Reverted skip_python3 function remove change
2021-08-24 15:51:50 +05:30
f4f78a1011
Add a separate logging test case with a test for proofofwork.LogOutput() 2021-08-18 20:05:08 +03:00
01b0fee4b4
Move to pyelliptic.tests also test_blindsig and test_openssl 2021-08-17 15:57:08 +03:00
6360c2773d
Separate pyelliptic tests from crypto tests and add simple tests for
changebase(), decode(), encode(), hex_to_point() and point_to_hex()
2021-08-17 15:57:08 +03:00
3bd3f8eda2
Separate the test using protocol.checkSocksIP() and skip it on python3
Closes: #1792
2021-08-17 15:57:07 +03:00
c11186e7be
Move test_network_group into the TestProtocol 2021-08-17 15:56:59 +03:00