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

Fix APIErrorCode class (did not work as expected) #191

Merged
merged 4 commits into from
Jul 19, 2024

Conversation

sHermanGriffiths
Copy link
Contributor

Describe Your Changes

The previous edits didn't work as expected and raised an error

How Did You Test It

Write test_apierrorcode_contains

Copy link
Contributor

@johndgiese johndgiese left a comment

Choose a reason for hiding this comment

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

Hey @sHermanGriffiths can you have Bimba review this please? I left one comment



def test_apierrorcode_contains():
errors = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Very cool! Checkout pytest fixtures for another way to do this: https://docs.pytest.org/en/6.2.x/fixture.html#parametrizing-fixtures

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep yep! We use them in other tests in the notion-qms repo I think. If we expand this module I'll probably end up shifting to that method to avoid definition repetition.

@sHermanGriffiths sHermanGriffiths merged commit 2996afb into main Jul 19, 2024
4 checks passed
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.

3 participants