-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add check for circular dependencies #165
base: master
Are you sure you want to change the base?
Conversation
Wasn't sure how to approach a test for this at first, working on that now though. |
d4928b7
to
c093bd2
Compare
Test is added now |
c093bd2
to
f96eb4e
Compare
I have made the required changes I added some temp logging to show the results against a repo, |
d744e6f
to
602122f
Compare
bea64bc
to
621f062
Compare
rebased and resolved merge conflicts and pylint assertions |
@@ -16,13 +16,19 @@ | |||
|
|||
|
|||
class Repository(): | |||
def __init__(self, version, path): | |||
def __init__(self, version, path, local_xml=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add docstrings here, as your adding a new param (it should be documented that it's only use is testing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I also added simple descriptive doc strings to the unit test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding an additional parameter which is only used for testing is wrong.
621f062
to
b91ea8d
Compare
485bc74
to
9dab26a
Compare
9dab26a
to
bdcc668
Compare
bdcc668
to
48fdb82
Compare
Rebased and resolved the conflicts, is there anything else required for this? |
Would be great if @Rechi could sign this off too :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check_circular_dependencies
is hard to read and understand, it has to be simplified.
Please add another test-case checking transitive dependencies.
@@ -16,13 +16,19 @@ | |||
|
|||
|
|||
class Repository(): | |||
def __init__(self, version, path): | |||
def __init__(self, version, path, local_xml=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding an additional parameter which is only used for testing is wrong.
129c558
to
a2c35cb
Compare
I've removed the local_xml parameter, and moved dependency tree creation to it's own function with it's own test |
a2c35cb
to
1c3223d
Compare
For #125