From 56aa8dc4a1852fe8f01dd42abebb72d34e077965 Mon Sep 17 00:00:00 2001 From: BillSchumacher <34168009+BillSchumacher@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:38:08 -0600 Subject: [PATCH] Avoid issues with quotes. --- behave_django_steps/given/request/data.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/behave_django_steps/given/request/data.py b/behave_django_steps/given/request/data.py index 4fe08e7..ff5249d 100644 --- a/behave_django_steps/given/request/data.py +++ b/behave_django_steps/given/request/data.py @@ -34,7 +34,7 @@ def request_has_key_with_boolean_value(context, key, value): def request_has_key_with_numeric_value(context, key, value): """Add a key with a value to the request data.""" context.execute_steps("Given request data is available") - if value is None or value == "": + if value is None or value == "" or value == '""': value = None else: value = float(value) if "." in value else int(value) diff --git a/pyproject.toml b/pyproject.toml index d703393..26f3de9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "behave-django-steps" -version = "0.7.11" +version = "0.7.12" authors = [ { name="Bill Schumacher", email="34168009+BillSchumacher@users.noreply.github.com" }, ]