From 091763368b76f4a2fbf81b445fb460ce86025853 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lu=C3=ADs=20Henrique=20Allebrandt=20Schunemann?= <44511825+luishenri@users.noreply.github.com> Date: Thu, 14 Aug 2025 18:56:41 -0300 Subject: [PATCH] test(config): add additional tests for various integer values in TOML configuration --- tests/test_config.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index 1205fbf2..c21d4821 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -595,13 +595,20 @@ script_location = "%(here)s/scripts" script_location = "%(here)s/scripts" my_int = 42 +my_int_zero = 0 +my_int_negative = -7 +my_int_large = 12345678901234567890 +my_int_str = "123" """ ) if "toml_alembic_config" in cfg.__dict__: cfg.__dict__.pop("toml_alembic_config") - value = cfg.get_alembic_option("my_int") - eq_(value, "42") + eq_(cfg.get_alembic_option("my_int"), "42") + eq_(cfg.get_alembic_option("my_int_zero"), "0") + eq_(cfg.get_alembic_option("my_int_negative"), "-7") + eq_(cfg.get_alembic_option("my_int_large"), "12345678901234567890") + eq_(cfg.get_alembic_option("my_int_str"), "123") class StdoutOutputEncodingTest(TestBase): -- 2.47.3