예제 #1
0
    def test_alltypes(self):

        # ballpark estimates.
        self.assertTrue(
            len(SdoTermSource.getAllTypes()) > TYPECOUNT_LOWERBOUND,
            "Should be > %d types. Got %s" %
            (TYPECOUNT_LOWERBOUND, len(SdoTermSource.getAllTypes())))
        self.assertTrue(
            len(SdoTermSource.getAllTypes()) < TYPECOUNT_UPPERBOUND,
            "Should be < %d types. Got %s" %
            (TYPECOUNT_UPPERBOUND, len(SdoTermSource.getAllTypes())))
예제 #2
0
def fullReleasePage(page):
    listings = []
    listings.append(listingNode("Thing", title="Type hierarchy"))
    types = SdoTermSource.getAllEnumerationvalues(expanded=True)
    types.extend(SdoTermSource.getAllTypes(expanded=True))
    types = SdoTermSource.expandTerms(types)
    types = sorted(types, key=lambda t: t.id)
    extra_vars = {
        'home_page': "False",
        'title': "Full Release Summary",
        'version': getVersion(),
        'date': getCurrentVersionDate(),
        'listings': listings,
        'types': types,
        'properties': SdoTermSource.getAllProperties(expanded=True)
    }
    return docsTemplateRender("docs/FullRelease.j2", extra_vars)