From: Luís Henrique Allebrandt Schunemann <44511825+luishenri@users.noreply.github.com> Date: Thu, 14 Aug 2025 21:56:41 +0000 (-0300) Subject: test(config): add additional tests for various integer values in TOML configuration X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=091763368b76f4a2fbf81b445fb460ce86025853;p=thirdparty%2Fsqlalchemy%2Falembic.git test(config): add additional tests for various integer values in TOML configuration --- 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):