Skip to content

python: assert actual == expected ordering #36980

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

Merged
merged 7 commits into from
Apr 11, 2024
Merged

Conversation

erohmensing
Copy link
Contributor

@erohmensing erohmensing commented Apr 10, 2024

Encourage tests being written in the assert expected == actual order. Although unittest is not opinionated about this, PyCharm likes to show expected/actual diffs, so it is nice to define it in one direction. We picked the direction that Pycharm uses by default, though if we decided we wanted to go the other direction, this inference is overridable in Pycharm under Advanced settings > Swap the order of actual and expected assertions in pytest

@erohmensing erohmensing requested a review from a team April 10, 2024 21:51
Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Apr 11, 2024 2:55pm

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues CDK Connector Development Kit normalization labels Apr 10, 2024
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @erohmensing and the rest of your teammates on Graphite Graphite

@erohmensing erohmensing requested a review from brianjlai April 10, 2024 22:12
Copy link
Contributor

@brianjlai brianjlai left a comment

Choose a reason for hiding this comment

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

C O N S I S T E N C Y

@erohmensing erohmensing enabled auto-merge (squash) April 11, 2024 14:58
@erohmensing erohmensing merged commit b7819d9 into master Apr 11, 2024
@erohmensing erohmensing deleted the ella/actualexpected branch April 11, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit normalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants