From 56f2d3aafb940da3a74c658c9cf376bb2ff906d6 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Thu, 5 Sep 2024 23:18:57 +0200 Subject: [PATCH 1/2] Added two more tests --- src/utils/tests/test_uri_encode.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/utils/tests/test_uri_encode.c b/src/utils/tests/test_uri_encode.c index 701332663..3472c0344 100644 --- a/src/utils/tests/test_uri_encode.c +++ b/src/utils/tests/test_uri_encode.c @@ -19,6 +19,16 @@ MU_TEST(test_encode_something) { mu_assert_string_eq("something", buf); mu_assert_int_eq(9, n); } +MU_TEST(test_encode_something_percent) { + int n = uri_encode("something%", 10, buf); + mu_assert_string_eq("something%25", buf); + mu_assert_int_eq(12, n); +} +MU_TEST(test_encode_something_zslash) { + int n = uri_encode("something%z/", 12, buf); + mu_assert_string_eq("something%25z%2F", buf); + mu_assert_int_eq(16, n); +} MU_TEST(test_encode_space) { int n = uri_encode(" ", 1, buf); mu_assert_string_eq("%20", buf); @@ -139,6 +149,8 @@ MU_TEST_SUITE(test_suite) { MU_RUN_TEST(test_encode_empty); MU_RUN_TEST(test_encode_something); + MU_RUN_TEST(test_encode_something_percent); + MU_RUN_TEST(test_encode_something_zslash); MU_RUN_TEST(test_encode_percent); MU_RUN_TEST(test_encode_space); MU_RUN_TEST(test_encode_empty); From 4a54e836b1d8fdeaab3c4d3f4fd3e8e9306bfee7 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Thu, 17 Oct 2024 22:09:39 +0200 Subject: [PATCH 2/2] No more support for Python 3.7 --- python/setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index 00a3f6cbd..91e04c267 100644 --- a/python/setup.py +++ b/python/setup.py @@ -202,7 +202,6 @@ def run(self): "Operating System :: POSIX :: Linux", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",