Servicemock
Unittest example
import unittest
import servicemock as sm
class TestService(sm.ServiceMockTestCase):
def test(self):
# If the expected request is not made the test will fail
sm.expect('http://service.com').to_receive(sm.Request('GET', '/v1/users')).and_responds(sm.HTTP200Ok(sm.JSON({'status': 'ok'})))
Release files for servicemock 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| servicemock-0.1.1.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| servicemock-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / servicemock-0.1.1.tar.gz
| Download URL | servicemock-0.1.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4984701e01580221b250e13fde8793a9a74e4f13c5da62131e7bbd3b61e9728
|
|
BLAKE2b-256 checksum How to use checksums |
97faf6d6196b5f3d8730112238620060ecca77faea32c15a469112714048698c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / servicemock-0.1.1-py3-none-any.whl
| Download URL | servicemock-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d10ad6a6e8b7284290355389da76f78ccc0a2f3b91295bf363d6d732c7d2fff
|
|
BLAKE2b-256 checksum How to use checksums |
aee956150193059a60cf58d0518de5a98666e2598bc8d4d76c966c5ded2d1561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|