From c9b2445cbfda36000476ea1dcad722ff6683d0d2 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Tue, 3 Sep 2024 11:28:18 +0200 Subject: [PATCH] Add MSD to .rest.CLASS_NAME and test --- sdmx/rest/common.py | 1 + sdmx/tests/test_model.py | 1 + 2 files changed, 2 insertions(+) diff --git a/sdmx/rest/common.py b/sdmx/rest/common.py index 304ea160..d1190f80 100644 --- a/sdmx/rest/common.py +++ b/sdmx/rest/common.py @@ -15,6 +15,7 @@ CLASS_NAME = { "dataflow": "DataflowDefinition", "datastructure": "DataStructureDefinition", + "metadatastructure": "MetadataStructureDefinition", } # Inverse of :data:`CLASS_NAME`. diff --git a/sdmx/tests/test_model.py b/sdmx/tests/test_model.py index fc181703..629ca208 100644 --- a/sdmx/tests/test_model.py +++ b/sdmx/tests/test_model.py @@ -216,6 +216,7 @@ def test_complete(module, extra): (dict(name=Resource.conceptscheme), model.ConceptScheme), (dict(name=Resource.contentconstraint), v21.ContentConstraint), (dict(name=Resource.dataflow), v21.DataflowDefinition), + (dict(name=Resource.metadatastructure), v21.MetadataStructureDefinition), (dict(name=Resource.organisationscheme), model.OrganisationScheme), (dict(name=Resource.provisionagreement), v21.ProvisionAgreement), pytest.param(