python-wiremock icon indicating copy to clipboard operation
python-wiremock copied to clipboard

GlobalSettings.update_global_settings raises JSONDecodeError

Open jjeffryes-shippo opened this issue 1 year ago • 0 comments
trafficstars

Proposal

It appears that GlobalSettings.update_global_settings() expects to receive back the updated setting when posting to __admin/settings but according to the documentation the actual successful response is blank. Thus when I attempt this, the setting is successfully applied but raises a JSONDecodeError from requests.

Reproduction steps

Based on the unit test I see here, I attempted to set a global fixed delay as follows: GlobalSettings.update_global_settings(GlobalSetting(fixed_delay=350)) with wiremock:2.32.0.

References

No response

jjeffryes-shippo avatar Feb 29 '24 19:02 jjeffryes-shippo