Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create test suite for types defined by NamedTuple #2412

Closed
markheger opened this issue Apr 9, 2020 · 1 comment
Closed

Create test suite for types defined by NamedTuple #2412

markheger opened this issue Apr 9, 2020 · 1 comment

Comments

@markheger
Copy link
Member

  1. Required types:
  • str
  • bool
  • int
  • float
  • Decimal
  • complex
  • bytes
  • List[T]
  • Set[T]
  • Mapping[T]
  • Optional[T]
  1. Nesting of the above types, as well as custom types - for example:
class Address(NamedTuple):
    street: str
    city: str
    state: str
class Person(NamedTuple):
    name: str
    age: float
    address: Address
    children: List[Person]
markheger pushed a commit to markheger/streamsx.topology that referenced this issue Apr 16, 2020
markheger pushed a commit that referenced this issue Apr 16, 2020
namedTuple test suite, foundation work, #2412
@markheger
Copy link
Member Author

test suite has been delivered as foundation work for #1679 : https://github.com/IBMStreams/streamsx.topology/blob/master/test/python/topology/test2_namedtuple.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant