From 7b47b0586cd96c40fa2ec2635096385e4f83c435 Mon Sep 17 00:00:00 2001 From: elcarpenterNOAA Date: Thu, 26 Dec 2024 20:19:15 -0500 Subject: [PATCH] sort tests --- src/uwtools/tests/config/formats/test_base.py | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/uwtools/tests/config/formats/test_base.py b/src/uwtools/tests/config/formats/test_base.py index aee034fd8..6549e0898 100644 --- a/src/uwtools/tests/config/formats/test_base.py +++ b/src/uwtools/tests/config/formats/test_base.py @@ -213,20 +213,20 @@ def test_dereference(tmp_path): c: !int '{{ N | int + 11 }}' d: '{{ X }}' e: - - !int '42' - - !float '3.14' - - !datetime '{{ D }}' - - !list "[ a0, a1, a2, ]" - !bool "False" + - !datetime '{{ D }}' + - !float '3.14' + - !int '42' - !dict "{ b0: 0, b1: 1, b2: 2,}" - !dict "[ ['c0',0], ['c1',1], ['c2',2], ]" + - !list "[ a0, a1, a2, ]" f: - f1: !int '42' + f1: True f2: !float '3.14' - f3: True - f4: !list "[ 0, 1, 2, ]" - f5: !dict "{ b0: 0, b1: 1, b2: 2,}" - f6: !dict "[ ['c0',0], ['c1',1], ['c2',2], ]" + f3: !dict "{ b0: 0, b1: 1, b2: 2,}" + f4: !dict "[ ['c0',0], ['c1',1], ['c2',2], ]" + f5: !int '42' + f6: !list "[ 0, 1, 2, ]" g: !bool '{{ f.f3 }}' h: !bool 0 D: 2024-10-10 00:19:00 @@ -247,21 +247,21 @@ def test_dereference(tmp_path): "b": {"c": 33}, "d": "{{ X }}", "e": [ - 42, - 3.14, - datetime.fromisoformat("2024-10-10 00:19:00"), - ["a0", "a1", "a2"], False, + datetime.fromisoformat("2024-10-10 00:19:00"), + 3.14, + 42, {"b0": 0, "b1": 1, "b2": 2}, {"c0": 0, "c1": 1, "c2": 2}, + ["a0", "a1", "a2"], ], "f": { - "f1": 42, + "f1": True, "f2": 3.14, - "f3": True, - "f4": [0, 1, 2], - "f5": {"b0": 0, "b1": 1, "b2": 2}, - "f6": {"c0": 0, "c1": 1, "c2": 2}, + "f3": {"b0": 0, "b1": 1, "b2": 2}, + "f4": {"c0": 0, "c1": 1, "c2": 2}, + "f5": 42, + "f6": [0, 1, 2], }, "g": True, "h": False,