[WIP] Add unit tests for registering and unregistering SCM tools using API in scmtools/service.py
Review Request #9573 — Created Feb. 2, 2018 and discarded — Latest diff uploaded
Basic unit tests for registering and unregistering SCM tools have been
added inscmtools/tests/test_registration.py
. This tests the API
created last week inscmtools/service.py
.Additionally, any code for adding/removing URL patterns (copied from
hosting services) has been removed fromscmtools/service.py
, as it
does not seem to apply.
Unit tests in
scmtools/tests/test_registration.py
:
- Testing SCMTool registration.
- Testing SCMTool unregistration.
- Testing SCMTool unregistration when the registry is empty.
- Testing SCMTool get a registered SCMTool.