Skip to content

Commit

Permalink
fix yaml test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jsouter committed Mar 4, 2025
1 parent b4d1c06 commit 660cd70
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests/plan_stubs/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def my_plan():
assert dict(settings) == serialized_values
assert not m.mock_calls
yield from apply_settings(settings)
assert len(m.mock_calls) == 19
assert len(m.mock_calls) == 20
m.reset_mock()
assert not m.mock_calls
yield from apply_settings_if_different(settings, apply_settings)
Expand Down
55 changes: 37 additions & 18 deletions tests/test_data/test_yaml_config_save.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,57 @@
a_bool: true
a_enum: Bbb
a_float: 1.234
a_int: 1
a_str: test_string
enum: Bbb
boola: [false, false, true]
enuma:
- Aaa
- Ccc
float32a: [-3.4028234663852886e+38, 3.4028234663852886e+38, 1.1754943508222875e-38,
1.401298464324817e-45, 0.0, 1.2339999675750732, 234000.0, 3.4499998946557753e-06]
float64a: [-1.7976931348623157e+308, 1.7976931348623157e+308, 2.2250738585072014e-308,
5.0e-324, 0.0, 1.234, 234000.0, 3.45e-06]
- Aaa
- Ccc
float32a:
[
-3.4028234663852886e+38,
3.4028234663852886e+38,
1.1754943508222875e-38,
1.401298464324817e-45,
0.0,
1.2339999675750732,
234000.0,
3.4499998946557753e-06,
]
float64a:
[
-1.7976931348623157e+308,
1.7976931348623157e+308,
2.2250738585072014e-308,
5.0e-324,
0.0,
1.234,
234000.0,
3.45e-06,
]
int16a: [-32768, 32767, 0, 1, 2, 3, 4]
int32a: [-2147483648, 2147483647, 0, 1, 2, 3, 4]
int64a: [-9223372036854775808, 9223372036854775807, 0, 1, 2, 3, 4]
int8a: [-128, 127, 0, 1, 2, 3, 4]
ndarray: [[1, 2, 3], [4, 5, 6]]
stra:
- one
- two
- three
- one
- two
- three
table:
a_bool: [false, false, true, true]
a_enum:
- Aaa
- Bbb
- Aaa
- Ccc
- Aaa
- Bbb
- Aaa
- Ccc
a_float: [1.8, 8.2, -6.0, 32.9887]
a_int: [1, 8, -9, 32]
a_str:
- Hello
- World
- Foo
- Bar
- Hello
- World
- Foo
- Bar
uint16a: [0, 65535, 0, 1, 2, 3, 4]
uint32a: [0, 4294967295, 0, 1, 2, 3, 4]
uint64a: [0, 18446744073709551615, 0, 1, 2, 3, 4]
Expand Down

0 comments on commit 660cd70

Please sign in to comment.