def test__get_docs_gettable_atts_good_path(): getatt = Project._get_docs_gettable_atts( { "properties": {"Id2": {"description": "foo"}}, "readOnlyProperties": ["/properties/Id2"], } ) assert getatt == [{"name": "Id2", "description": "foo"}]
def test__get_docs_gettable_atts_bad_path(docs_schema): getatt = Project._get_docs_gettable_atts(docs_schema) assert getatt == [{ "name": "Id2", "description": "Returns the <code>Id2</code> value." }]
def test__get_docs_gettable_atts_empty(): getatt = Project._get_docs_gettable_atts({}) assert getatt == []