-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
There was a problem hiding this 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
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) |
There was a problem hiding this comment.
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.
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 + "="): |
There was a problem hiding this comment.
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
)
if arg.startswith(variable_name + "="): | |
if arg.startswith(f"{variable_name}="): |
Closes #IssueNr
π Description
β Checks
βΉ Additional Information