-
Notifications
You must be signed in to change notification settings - Fork 3
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
#126: fix MakeNote.key_to_log not being updated. #129
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -384,6 +384,7 @@ def test_key_value_set(self) -> None: | |
|
||
assert mn.question == test_question | ||
assert mn.key == test_key | ||
assert mn.key_to_log == f"'{test_key}'" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is the only test we need, as our typehints try to tell users to only pass This test shows that using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There isn't a test to prove |
||
|
||
def test_answers_question(self, Tester: Actor) -> None: | ||
mock_question = FakeQuestion() | ||
|
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.
This make sense, but I'm starting to wonder if we should consider a wholesale update to any action similar to this; I think we ought to make
key_to_log
a property. (in a future PR)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.
That's a good call, and yeah let's make that happen soon.