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

add getting and setting assertions #6

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

st3v3nmw
Copy link
Contributor

@st3v3nmw st3v3nmw commented Jan 24, 2024

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

@st3v3nmw st3v3nmw marked this pull request as draft January 24, 2024 08:49
@st3v3nmw st3v3nmw force-pushed the add-and-set-assertions branch 3 times, most recently from 46cbe86 to fd7fc7a Compare January 25, 2024 09:56
@st3v3nmw st3v3nmw marked this pull request as ready for review January 25, 2024 09:59
Copy link
Contributor

@Perfect5th Perfect5th left a 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.

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)
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, fixed

Copy link
Contributor

@Perfect5th Perfect5th left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Perfect5th Perfect5th merged commit b9e2802 into canonical:main Jan 30, 2024
4 checks passed
@st3v3nmw st3v3nmw deleted the add-and-set-assertions branch January 30, 2024 19:03
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