def test__get_docs_primary_identifier_good_path(): ref = Project._get_docs_primary_identifier( {"primaryIdentifier": ["/properties/Id1"]}) assert ref == "Id1"
def test__get_docs_primary_identifier_bad_path(docs_schema): ref = Project._get_docs_primary_identifier(docs_schema) assert ref is None