Wooper¶
FrisbyJS inspired steps for unittest and behave
Source code: https://github.com/actionless/wooper
Package repository: https://pypi.org/project/wooper/
Documentation: http://actionless.github.io/wooper/
Table of Contents¶
Using with Behave
Using with UnitTest
- Test class for UnitTest
ApiMixin
ApiMixin.server_url
ApiMixin.DELETE()
ApiMixin.GET()
ApiMixin.HEAD()
ApiMixin.PATCH()
ApiMixin.POST()
ApiMixin.PUT()
ApiMixin.enable_ssl_verification
ApiMixin.expect_body_contains()
ApiMixin.expect_headers()
ApiMixin.expect_headers_contain()
ApiMixin.expect_json()
ApiMixin.expect_json_contains()
ApiMixin.expect_json_length()
ApiMixin.expect_json_match()
ApiMixin.expect_json_not_contains()
ApiMixin.expect_status()
ApiMixin.expect_status_in()
ApiMixin.json_response
ApiMixin.print_headers
ApiMixin.print_payload
ApiMixin.print_url
- Example using with Unittest