Mock classes/threads for backend #1878

Open
opened 2021-11-11 08:23:50 +01:00 by PeterSurda · 0 comments
PeterSurda commented 2021-11-11 08:23:50 +01:00 (Migrated from github.com)

Create the following mock threads that can be used for UI tests

  • worker (pretend to do PoW and mark message as sent after a while, or pretend the key doesn't exist)
  • Object Processor (pretend objects are arriving from network and insert records into inbox or pubkey tables)
  • Network thread (just return fake connections, bandwidth)

These will then be used for tests so that we have a more lightweight UI testing capability (Qt, kivy, ...)
Make them compatible with Python 2 and Python 3

Create the following mock threads that can be used for UI tests - [ ] worker (pretend to do PoW and mark message as sent after a while, or pretend the key doesn't exist) - [ ] Object Processor (pretend objects are arriving from network and insert records into `inbox` or `pubkey` tables) - [ ] Network thread (just return fake connections, bandwidth) These will then be used for tests so that we have a more lightweight UI testing capability (Qt, kivy, ...) Make them compatible with Python 2 and Python 3
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2025-02-25#1878
No description provided.