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

wordy: update tests to v1.2.0 #1535

Merged
merged 3 commits into from
Oct 1, 2018
Merged

wordy: update tests to v1.2.0 #1535

merged 3 commits into from
Oct 1, 2018

Conversation

fortrieb
Copy link
Contributor

@fortrieb fortrieb commented Oct 1, 2018

Update wordy test to 1.2.0. Fix #1530

Update wordy test to 1.2.0
@cmccandless cmccandless changed the title Fix #1530 wordy: update tests to v1.2.0 Oct 1, 2018
@@ -51,12 +51,14 @@ def test_multiple_division(self):
calculate("What is -12 divided by 2 divided by -3?"), 2)

def test_unknown_operation(self):
with self.assertRaisesWithMessage(ValueError):
with self.assertRaisesWithMessage(ValueError) as error:
Copy link
Contributor

Choose a reason for hiding this comment

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

In this track, we don't test for actual exception message content, only that one is present. The reasoning for this is summarized well here: #1080 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. Well should i check that the error message is not empty? Or is raising an error enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

assertRaisesWithMessage checks for a non-null, non-empty error message.

Spacing arround reference fixed
@cmccandless cmccandless merged commit 0e06b56 into exercism:master Oct 1, 2018
@cmccandless
Copy link
Contributor

Merged; thanks for working on this!

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.

2 participants