diff --git a/CHANGES.rst b/CHANGES.rst index d702fb9..ed6fde8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,32 @@ Release Notes ============= +.. _Release Notes_1.2.0: + +1.2.0 +===== + +.. _Release Notes_1.2.0_Upgrade Notes: + +Upgrade Notes +------------- + +- Dictionary expectations must include parameters with empty values. + A request for ``flag=&foo=123`` previously matched ``{"foo": "123"}``. + It now requires ``{"flag": "", "foo": "123"}``. + + +.. _Release Notes_1.2.0_Bug Fixes: + +Bug Fixes +--------- + +- Preserve empty query values when matching dictionaries and MultiDict objects. + Both ``flag=`` and ``flag`` match ``{"flag": ""}`` and no longer match ``{}``. + For repeated parameters, dictionary matching uses the first value even when it + is empty. MultiDict matching includes every empty value. + + .. _Release Notes_1.1.5: 1.1.5 diff --git a/doc/conf.py b/doc/conf.py index 2dd7cac..547fafc 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -68,7 +68,7 @@ # built documents. # # The short X.Y version. -version = "1.1.5" +version = "1.2.0" # The full version, including alpha/beta/rc tags. release = version diff --git a/pyproject.toml b/pyproject.toml index 337360f..9fb32ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pytest_httpserver" -version = "1.1.5" +version = "1.2.0" description = "pytest-httpserver is a httpserver for pytest" readme = "README.md" license = "MIT"