Skip to content

Commit

Permalink
sort tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elcarpenterNOAA committed Dec 27, 2024
1 parent 5cca04c commit 7b47b05
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/uwtools/tests/config/formats/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 7b47b05

Please sign in to comment.