Skip to content

Fixed sanity check for edge metadata - #28

Closed
Sriganesh-k wants to merge 1 commit into
mainfrom
fix/coremodel-sanity-check
Closed

Fixed sanity check for edge metadata#28
Sriganesh-k wants to merge 1 commit into
mainfrom
fix/coremodel-sanity-check

Conversation

@Sriganesh-k

Copy link
Copy Markdown
Collaborator

Fixes #8.

The sanity check incorrectly expected edge-data keys to be lists, although they are component UIDs (int). This caused valid converted models to fail the sanity check.

Changes:

  • validate edge-data keys as int
  • add a regression test with valid edge metadata

Tests:

  • python -m pytest tests/core/generic/component_graph_test.py -vv
  • 16 passed

@JohannesWeinbrecht

Copy link
Copy Markdown
Collaborator

The changes to the sanity check itself, which are done here, are already included in PR #24.

The test looks good, though. Please transfer it to PR #24. I will close this PR, as it is a duplicate.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix sanity check method of CoreModel class

2 participants