forked from nose-devs/nose2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layers: refactor layer ordering (fixes nose-devs#215)
Problem: When sorting the layers, we currently treat the layer's mixins and layer's parents the same way. As a result, mixins that do not have parents are considered to be top layers, which is wrong, since they should be enclosed in the parent of the layer they belong to. Solution: Changing this behavior actually requires to refactor the layer sorting logic. In this version, we handle separatly regular layers and mixins. From a style point of view, we try to avoid the camelCase for function names, and use class methods wherever it's possible.
- Loading branch information
1 parent
64589fa
commit b953650
Showing
2 changed files
with
157 additions
and
75 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