Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Tests #99

Draft
wants to merge 22 commits into
base: yowsup-3
Choose a base branch
from
Draft

Tests #99

wants to merge 22 commits into from

Conversation

arkkors
Copy link

@arkkors arkkors commented Jun 16, 2021

This merge request adds some tests written for the pytest framework, bringing the coverage to sane ~70% (hopefully).
It also adds all required changes to make unit-testing feasible.

This means:

  • pinning protobuf to a version from 2019
  • s/Spectrum2/spectrum2/g
  • fixing some bugs which make unittesting much harder, that is:
    • add a guard to transWhat.session.Session:logout, otherwise everything crashes and burns on __del__
  • adding tox and friends

Note that this MR has not the goal to get everything working (yet), just to get an usable working base.

Progress (Coverage >= 70%):

  • deferred
  • bot
  • buddy
  • group
  • registersession
  • session
  • threadutils
  • transwhat
  • whatsappbackend
  • yowsupwrapper

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant