Skip to content

Commit

Permalink
move tests to their own file
Browse files Browse the repository at this point in the history
  • Loading branch information
eagmon committed Dec 7, 2024
1 parent 6ac9dc4 commit d562380
Show file tree
Hide file tree
Showing 3 changed files with 2,326 additions and 2,330 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 d562380

Please sign in to comment.