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

Bugfix/add save page test #15

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Bugfix/add save page test #15

merged 3 commits into from
Apr 26, 2024

Conversation

yazdipour
Copy link
Owner

@yazdipour yazdipour commented Apr 26, 2024

Closes #IssueNr

πŸ“‘ Description

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @yazdipour - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟑 General issues: 1 issue found
  • 🟒 Security: all looks good
  • 🟒 Testing: all looks good
  • 🟒 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click πŸ‘ or πŸ‘Ž on each comment to tell me if it was helpful.

@@ -16,8 +20,7 @@ def __init__(self, api_token: str, graphql_endpoint_url: str = "https://api-prod
headers={"content-type": "application/json", "authorization": api_token},
use_json=True,
)
self.client = Client(transport=transport,
fetch_schema_from_transport=False)
self.client = Client(transport=transport, fetch_schema_from_transport=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider enabling schema fetching from transport for development.

Fetching the schema can be useful during development to catch breaking changes in the GraphQL schema. It might be beneficial to allow this to be configurable via an optional parameter.

Suggested change
self.client = Client(transport=transport, fetch_schema_from_transport=False)
def __init__(self, transport, fetch_schema=False):
self.client = Client(transport=transport, fetch_schema_from_transport=fetch_schema)

if arg.startswith(variable_name + '='):
return arg.split('=')[1]
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
if arg.startswith(variable_name + "="):
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (code-quality): Use f-string instead of string concatenation (use-fstring-for-concatenation)

Suggested change
if arg.startswith(variable_name + "="):
if arg.startswith(f"{variable_name}="):

@yazdipour yazdipour merged commit 4401012 into main Apr 26, 2024
4 checks passed
@yazdipour yazdipour deleted the bugfix/add-save-page-test branch April 26, 2024 12:26
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.

1 participant