wiremock / python-wiremock

A Python library for API mocking and testing with Testcontainers module and WireMock

Home Page:https://wiremock.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError when updating mapping data

andreroggeri opened this issue · comments

I'm trying to update some properties from a Mapping instance before creating

When I do this a TypeError exception is thrown

mapping = Mapping.from_dict({})
mapping.status = 500 # This line fails

The stacktrace takes me to the following line (But the code from pip is missing the self parameter)

https://github.com/platinummonkey/python-wiremock/blob/52235657e8977a1c6509d94baf90c7ea503aa5d7/wiremock/base/base_entity.py#L161

Installing from master branch fixes the problem. Can we have a new release ? 😄

released 2.1.2 from master 👍