-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
model.base: Improve
NamespaceSet
(#155)
- Refactor `NamespaceSet.add()` as too big - Extract some methods, in particular `_execute_item_del_hook` to avoid code duplication - As we check different constraints for uniqueness in the namespace, I defined `ATTRIBUTES_CONSTRAINT_IDS`. The dict will be used when throwing exception. The solution with the dict is temporary, we need another solution here. - Use correct constraint ids for each NamespaceSet in tests, use 000 if not constraint id is suitable
- Loading branch information
Showing
2 changed files
with
77 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters