-
Notifications
You must be signed in to change notification settings - Fork 2
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
add getting and setting assertions #6
Conversation
46cbe86
to
fd7fc7a
Compare
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.
Please resolve merge conflicts caused by merge of other PR.
tests/integration/conftest.py
Outdated
def hello_world_snap_declaration_assertion() -> (str, Dict[str, str]): | ||
path = "tests/integration/assets/hello_world_snap_declaration.assert" | ||
with open(path, "rb") as f: | ||
yield (f.read().decode(), HELLO_WORLD_SNAP_DECLARATION_ASSERTION) |
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.
what's the purpose of opening the file in binary mode if we're immediately going to decode it?
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.
Oops, fixed
fd7fc7a
to
d2aec1a
Compare
d2aec1a
to
3941752
Compare
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!
the code changes in
snap_http
are relatively few, but the integration testing was a bit hectic since there's no "official" way to remove an assertion