-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
Hi @stsewd can you please review this? |
@sriks123 any reason why you closed #4714? |
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.
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): |
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.
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 |
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.
If we use the same variable we don't need to duplicate this
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.
LGTM, thanks
@stsewd thanks |
@agjohnson can we merge this? |
Looks good. 👍 |
Fixes issue #4669