Skip to content

Add infrastructure for serialization tests #653

@pranavm-nvidia

Description

@pranavm-nvidia

We should have some kind of infrastructure which will accept constructed Tripy objects and then run them through serialization/deserialization and check if the resulting object matches the original. The test would be of the form:

deserialized = json_utils.from_json(json_utils.to_json(obj))
assert obj.__dict__ == deserialized.__dict__

This will help us ensure we don't forget any fields in our serialization code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tripyPull request for the tripy project

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions