Skip to content

Commit

Permalink
[pydrake] Begin adding typed (i.e., schema-based) YAML loading (#18564)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Jan 12, 2023
1 parent 3d486c2 commit 643caa1
Show file tree
Hide file tree
Showing 6 changed files with 769 additions and 2 deletions.
11 changes: 11 additions & 0 deletions bindings/pydrake/common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,17 @@ drake_py_unittest(
],
)

drake_py_unittest(
name = "yaml_typed_test",
data = [
"//common/yaml:test/yaml_io_test_input_1.yaml",
],
deps = [
":yaml_py",
"//bindings/pydrake/common/test_utilities:meta_py",
],
)

add_pybind_coverage_data()

add_lint_tests_pydrake()
1 change: 1 addition & 0 deletions bindings/pydrake/common/test/yaml_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@


class TestYaml(unittest.TestCase):
"""Tests for the untyped yaml_load / yaml_dump functions."""

def test_via_file(self):
filename = os.path.join(os.environ["TEST_TMPDIR"], "foo.yaml")
Expand Down
Loading

0 comments on commit 643caa1

Please sign in to comment.