Skip to content
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

Added test cases and a fix for Issue #409. #505

Merged
merged 3 commits into from
Jul 10, 2019
Merged

Conversation

wecacuee
Copy link
Contributor

@wecacuee wecacuee commented Jul 7, 2019

Issue #409 : Recursively fill in the result with preset after setting in the conf in ConfigDict.call

@coveralls
Copy link

coveralls commented Jul 7, 2019

Coverage Status

Coverage decreased (-0.03%) to 85.08% when pulling 59f0c5f on wecacuee:issue-409 into 5639ad6 on IDSIA:master.

@JarnoRFB JarnoRFB requested a review from Qwlouse July 9, 2019 11:25
@JarnoRFB
Copy link
Collaborator

JarnoRFB commented Jul 9, 2019

@wecacuee Great, thanks for your first sacred contribution! Could you add a test case with a real experiment object as described in #409. Your added test cases probably already cover that behavior, but I think it would be good to also document the correct behavior on the user facing API.

@@ -367,3 +367,52 @@ def main(_config, nested_dict, nested_list, nested_tuple):

ex.run()


def test_add_config_dict_chain(ex):
# https://github.com/IDSIA/sacred/issues/409
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# https://github.com/IDSIA/sacred/issues/409

I think we do not have to refer to solved issues in the code as the test now clearly documents the intended behavior.

@JarnoRFB
Copy link
Collaborator

@wecacuee looks great. Please just delete the one comment and then we can merge.

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.

3 participants