Skip to content

Comments

Fix example's with_depends_on()#15

Open
kichik wants to merge 1 commit intoQualiNext:masterfrom
kichik:patch-3
Open

Fix example's with_depends_on()#15
kichik wants to merge 1 commit intoQualiNext:masterfrom
kichik:patch-3

Conversation

@kichik
Copy link

@kichik kichik commented Jul 4, 2019

The example uses with_depends_on() a few times and none of those uses do anything. That's because the code tests if the two objects have a template and it's the same template. The example doesn't initially set the template so this test fails silently and the dependencies are not added.

I'm not sure why the test was there in the first place. But if there is a good reason for it, I propose supporting no equality when no templates are defined. It should also raise an exception when the templates don't match instead of silently ignoring the dependency.

Allow dependencies for objects with no template set and don't silently ignore dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant