Skip to content

Commit

Permalink
Two tests to fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
illusional committed Sep 15, 2023
1 parent c232b00 commit b3accdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ repos:
--non-interactive,
--show-error-context,
--check-untyped-defs,
--explicit-package-bases,
--disable-error-code,
operator,
]
Expand Down
4 changes: 2 additions & 2 deletions regenerate_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def generate_schema_file():
Generate schema file and place in the metamist/graphql/ directory
"""
command = ['strawberry', 'export-schema', 'api.graphql.schema:schema']
schema = subprocess.check_output(command, stderr=subprocess.STDOUT).decode()
schema = subprocess.check_output(command).decode()

with open(os.path.join(MODULE_DIR, 'graphql/schema.graphql'), 'w+') as f:
f.write(schema)
Expand Down Expand Up @@ -317,7 +317,7 @@ def main():
while (not check_if_server_is_accessible()) and startup_tries > 0:
startup_tries -= 1
logger.info(
f'Dockerised API server is not ready yet. '
'Dockerised API server is not ready yet. '
+ f'Retrying in {wait_time_in_seconds} seconds. '
+ f'Remaining tries: {startup_tries}'
)
Expand Down

0 comments on commit b3accdf

Please sign in to comment.