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

Revise AuthenticationRecord to align with other SDKs #17689

Merged
merged 5 commits into from
Apr 5, 2021

Conversation

chlowell
Copy link
Member

No description provided.

if version:
data["version"] = version

with pytest.raises(ValueError, match=".*{}.*".format(version)):
Copy link
Member

Choose a reason for hiding this comment

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

Very nifty 🤠

@@ -52,11 +58,15 @@ def deserialize(cls, data):

deserialized = json.loads(data)

version = deserialized.get("version")
if version != "1.0":
raise ValueError('Unexpected version "{}"'.format(version))
Copy link
Member

Choose a reason for hiding this comment

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

It might be helpful to include the expected version in the exception.

@chlowell chlowell merged commit 472b1d4 into Azure:master Apr 5, 2021
@chlowell chlowell deleted the authrecord branch April 5, 2021 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants