We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, thanks for your great work.
I have a problem to mock multipart pattern. It seems not supported on python sdk. Is there a way to use it ?
Here is a simple way I make it work as I expect changing the source code of python-wiremock
python-wiremock
request = MappingRequest( method="POST", url="/api/archive/upload", multipart_patterns=[ { "name": "table", "headers": {"Content-Disposition": {"matches": "form-data; name=\"table\""}}, "bodyPatterns": [{"matches": "dt"}] } ] )
resources/mappings/models.py
@add_metaclass(BaseEntityMetaType) class MappingRequest(BaseAbstractEntity): method = JsonProperty("method") url = JsonProperty("url") url_path = JsonProperty("urlPath") url_path_pattern = JsonProperty("urlPathPattern") url_pattern = JsonProperty("urlPattern") basic_auth_credentials = JsonProperty( "basicAuthCredentials", klass=BasicAuthCredentials ) cookies = JsonProperty("cookies", klass=dict) headers = JsonProperty("headers", klass=dict) query_parameters = JsonProperty("queryParameters", klass=dict) body_patterns = JsonProperty("bodyPatterns", klass=list, list_klass=dict) metadata = JsonProperty("metadata", klass=dict) multipart_patterns = JsonProperty("multipartPatterns", klass=dict)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Proposal
Hi, thanks for your great work.
I have a problem to mock multipart pattern. It seems not supported on python sdk. Is there a way to use it ?
Proposition of implementation
Here is a simple way I make it work as I expect changing the source code of
python-wiremock
Usage
Change
resources/mappings/models.py
References
No response
The text was updated successfully, but these errors were encountered: