From 16e69e63e3fb6c0524a1c8d0d421c3d315fcb6f1 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 8 Feb 2024 15:56:57 -0500 Subject: [PATCH] add a test for this package providing no resources --- pyproject.toml | 1 + tests/test_no_resources.py | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/test_no_resources.py diff --git a/pyproject.toml b/pyproject.toml index 2cbc845..69cfbbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ docs = [ ] test = [ 'pytest', + 'asdf', ] [project.urls] diff --git a/tests/test_no_resources.py b/tests/test_no_resources.py new file mode 100644 index 0000000..8fda941 --- /dev/null +++ b/tests/test_no_resources.py @@ -0,0 +1,7 @@ +import asdf + + +def test_no_resources(): + resource_manager = asdf.get_config().resource_manager + for uri, mapping in resource_manager._mappings_by_uri.items(): + assert mapping.package_name != "asdf-unit-schemas"