Skip to content

Commit

Permalink
Merge pull request #94 from vivarium-collective/organize
Browse files Browse the repository at this point in the history
Organize
  • Loading branch information
eagmon authored Dec 7, 2024
2 parents 88af208 + 945a613 commit 2d6f334
Show file tree
Hide file tree
Showing 3 changed files with 5,620 additions and 5,683 deletions.
16 changes: 0 additions & 16 deletions bigraph_schema/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,19 +371,3 @@ def list(self):

def validate(self, item):
return True


def test_remove_omitted():
result = remove_omitted(
{'a': {}, 'b': {'c': {}, 'd': {}}},
{'b': {'c': {}}},
{'a': {'X': 1111}, 'b': {'c': {'Y': 4444}, 'd': {'Z': 99999}}})

assert 'a' not in result
assert result['b']['c']['Y'] == 4444
assert 'd' not in result['b']


if __name__ == '__main__':
test_reregister_type()
test_remove_omitted()
Loading

0 comments on commit 2d6f334

Please sign in to comment.