File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020
2121from sift_py .yaml import utils
2222
23- EXAMPLE_CONFIG = (
24- Path (__file__ ).resolve ().parents [3 ] / "examples" / "telemetry_config.example.yml"
25- )
23+ EXAMPLE_CONFIG = Path (__file__ ).resolve ().parents [3 ] / "examples" / "telemetry_config.example.yml"
2624
2725
2826def _force_pure_python_pyyaml (monkeypatch : pytest .MonkeyPatch ) -> None :
@@ -57,9 +55,7 @@ def _assert_sift_ingest_shape(config: dict) -> None:
5755 assert isinstance (enum .get ("key" ), int ), f"enum key not int: { enum !r} "
5856 for bit in ch .get ("bit_field_elements" , []) or []:
5957 assert isinstance (bit .get ("index" ), int ), f"bit index not int: { bit !r} "
60- assert isinstance (bit .get ("bit_count" ), int ), (
61- f"bit_count not int: { bit !r} "
62- )
58+ assert isinstance (bit .get ("bit_count" ), int ), f"bit_count not int: { bit !r} "
6359
6460
6561def test_rapidyaml_load_path ():
@@ -110,6 +106,4 @@ def test_try_fast_yaml_load_dispatches_to_rapidyaml_when_available():
110106 """``try_fast_yaml_load`` returns the rapidyaml result when ``_HAS_RYML`` is true."""
111107 pytest .importorskip ("ryml" )
112108 assert utils ._HAS_RYML , "rapidyaml declared as a required dep but not detected"
113- assert utils .try_fast_yaml_load (EXAMPLE_CONFIG ) == utils ._rapidyaml_load (
114- EXAMPLE_CONFIG
115- )
109+ assert utils .try_fast_yaml_load (EXAMPLE_CONFIG ) == utils ._rapidyaml_load (EXAMPLE_CONFIG )
You can’t perform that action at this time.
0 commit comments