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

Remove logic around finding config file inside directories #4755

Merged
merged 7 commits into from
Oct 30, 2018

Conversation

srikant-ch5
Copy link
Contributor

@srikant-ch5 srikant-ch5 commented Oct 13, 2018

Fixes issue #4669

@srikant-ch5 srikant-ch5 changed the title Fixes issue #4669 Remove logic around finding config file inside directories Oct 13, 2018
@srikant-ch5
Copy link
Contributor Author

Hi @stsewd can you please review this?

@stsewd
Copy link
Member

stsewd commented Oct 15, 2018

@sriks123 any reason why you closed #4714?

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

We can simplify the test a little more

])
def test_load_no_config_file(tmpdir, files):
def test_load_no_config_file(tmpdir, files, nested_files):
Copy link
Member

Choose a reason for hiding this comment

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

We don't need another variable here, adding the new tests to files is enough

apply_fs(tmpdir, nested_files)
with raises(ConfigError) as ae:
load(base, env_config)
assert ae.value.code == CONFIG_REQUIRED
Copy link
Member

Choose a reason for hiding this comment

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

If we use the same variable we don't need to duplicate this

@srikant-ch5
Copy link
Contributor Author

@stsewd I closed #4714 due to some problems in that branch which I created

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@srikant-ch5
Copy link
Contributor Author

@stsewd thanks

@stsewd
Copy link
Member

stsewd commented Oct 23, 2018

@agjohnson can we merge this?

@ericholscher
Copy link
Member

Looks good. 👍

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