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

Feat/tests improvements #25

Merged
merged 19 commits into from
Feb 7, 2024
Merged

Conversation

marek-szydlow
Copy link
Contributor

No description provided.

@marek-szydlow marek-szydlow marked this pull request as ready for review February 5, 2024 15:14
Copy link
Contributor

@patryk-grudzien-keen patryk-grudzien-keen left a comment

Choose a reason for hiding this comment

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

LGTM but I've some some comments/suggestions.

requirements.txt Outdated
@@ -1,4 +1,4 @@
apimatic-core~=0.2.0
apimatic-core>=0.2.8
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is not supposed to be modified because, on each SDK regeneration, it'll be overridden by APIMatic.

@@ -1,6 +0,0 @@
auth=$(echo "$BASIC_AUTH_USERNAME":"$BASIC_AUTH_PASSWORD" | base64)

curl --request POST \
Copy link
Contributor

Choose a reason for hiding this comment

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

Because this script won't be needed anymore, please delete it also from the .codegenignore file.


yield client

client.sites.clear_site()
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't it be invoked twice when requesting client in two consecutive tests?

from advancedbilling.models.subscription import Subscription


class InvoiceAssertCases:
Copy link
Contributor

Choose a reason for hiding this comment

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

All these classes live in the data module and in general, provide only the pure dictionaries so, I'd think about different names instead of assert because there are no asserts there.

@@ -0,0 +1,16 @@
__all__ = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed for subsequent cases to be properly loaded?

@patryk-grudzien-keen patryk-grudzien-keen merged commit aba50ec into main Feb 7, 2024
1 check passed
@patryk-grudzien-keen patryk-grudzien-keen deleted the feat/tests-improvements branch February 7, 2024 16:23
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