Skip to content

CodeDerivation works for testing enums #23

Description

@jessicamillar

Just added an EnumTestTranslation field to TypeAttributes. The issue is that testing the enums requires both the symbol and the enum (e.g. "Pending" for GNodeStatus and also "153d3475" for the symbol, for the BaseGNodeGt type).

Requires:

  • re-syncing and applying the airtable change in effortlessapi.com (need to use chrome for the chrome extension, which allows it to read the airtable API as long as the API dev page is opened)
  • change base.g.node.gt version 002 to Pending
  • making the appropriate updates to the Types/TypeTests/DeriveTypeTests.xslt
    so that

def test_base_g_node_gt_generated() -> None:
t = BaseGNodeGt( ... )
uses GNodeStatus.<xsl:value-of select="EnumTestTranslation"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions