Skip to content

Commit

Permalink
closes SynBioDex#430
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Apr 11, 2024
1 parent f0fc37f commit 0bf5ce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sbol2/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def __init__(self, property_owner, type_uri, reference_type_uri,
super().__init__(property_owner, type_uri, lower_bound, upper_bound,
validation_rules, initial_value)
self.reference_type_uri = reference_type_uri
if self._sbol_owner is not None:
if self._sbol_owner is None:
property_store = []
self._sbol_owner.properties[type_uri] = property_store

Expand Down
5 changes: 5 additions & 0 deletions test/test_participation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ def test_add_remove_role(self):
p.removeRole(1)
self.assertEqual([sbol2.SO_PROMOTER, sbol2.SO_CDS], p.roles)

def test_init_with_participant(self):

p = sbol2.Participation('p', participant='p1')
self.assertEqual('p1', p.participant)


if __name__ == '__main__':
unittest.main()

0 comments on commit 0bf5ce8

Please sign in to comment.