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

Show a nice error if the configured description-file is missing #234

Merged
merged 3 commits into from Feb 1, 2019
Merged

Show a nice error if the configured description-file is missing #234

merged 3 commits into from Feb 1, 2019

Conversation

zenbot
Copy link
Contributor

@zenbot zenbot commented Nov 13, 2018

Fixes #176.

tests/test_inifile.py Outdated Show resolved Hide resolved
Co-Authored-By: zenbot <zenbot@gmail.com>
@zenbot
Copy link
Contributor Author

zenbot commented Dec 21, 2018

Thanks @merwok!

def test_missing_description_file():
with pytest.raises(ConfigError, match=r"Description file .* does not exist"):
read_pkg_ini(samples_dir / 'missing-description-file.toml')
assert re.search(r"Description file .* does not exist", str(error))
Copy link
Member

Choose a reason for hiding this comment

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

I'm assuming that this can be removed now, because the pytest.raises() call will check the same thing?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes

Copy link
Member

Choose a reason for hiding this comment

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

@zenbot do you have a minute to remove the redundant line in the test?

Copy link
Member

Choose a reason for hiding this comment

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

Never mind, I realised I could do it in the web interface on Github. :-)

@takluyver takluyver merged commit a09bf3f into pypa:master Feb 1, 2019
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.

None yet

3 participants