Lemmons / pytest-raises

An implementation of pytest.raises as a pytest.mark fixture
MIT License
19 stars 8 forks source link

Allow for testing exception messages using pytest.mark.raises #6

Closed shanx closed 6 years ago

shanx commented 6 years ago

This PR allows for testing if an exception raised contains a certain message as is discussed in #5. It does a simple check now to see whether the expected message is part of the raised exception message by using in comparison.

shanx commented 6 years ago

The build seems to fail with the pylint.sh command returning status code 8. If I run pylint on my machine manually it runs fine. I would love to fix this, any clues?

Lemmons commented 6 years ago

So pylint is raising an error unrelated to this PR. I'll push a fix real quick, then you can merge the fix into this and it should be good.

Lemmons commented 6 years ago

The fix has been pushed. Merge master in and the build likely will start passing.

shanx commented 6 years ago

Awesome that worked, thanks!

shanx commented 6 years ago

@Lemmons could you merge this in?