-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bug tracker and Buganizer fixes #147
Conversation
…n-change passing runtime version to serverless dag
…upyter-plugin-fork into sprint19-bigquery-launcher-changes
…om/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint19-dataset-explorer-changes
…m/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint19-dataset-explorer-changes
…upyter-plugin-fork into sprint20-client-bug-tracker-fixes
…cker-fixes Settings page FE changes and Dag store copy BE changes
…upyter-plugin-fork into sprint20-client-bug-tracker-fixes
…m/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint20-client-bug-tracker-fixes
…cker-fixes Sprint20 client bug tracker fixes
import json | ||
from dataproc_jupyter_plugin import credentials |
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.
Wrong import order (see https://peps.python.org/pep-0008/#imports).
The imports should go as follows:
- Standard library imports
- Third-party imports
- Same package imports
... so the credentials import (from this same package) should be after the tornado import (from a third-party package).
import pendulum | ||
import requests | ||
from datetime import datetime, timedelta |
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.
Wrong import order here.
It should be:
from datetime import datetime, timedelta
import os
import shutil
import subprocess
import uuid
from google.cloud.jupyter_config.config import gcp_account
from jinja2 import Environment, PackageLoader, select_autoescape
import pendulum
import requests
from dataproc_jupyter_plugin import urls
...
@@ -56,6 +62,7 @@ async def test_list_datasets(monkeypatch, jp_fetch): | |||
) | |||
assert response.code == 200 | |||
payload = json.loads(response.body) | |||
print("payload ---------", payload) |
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.
Remove this debugging code.
# def mock_get(api_endpoint, headers=None): | ||
# response = Mock() | ||
# response.status_code = 200 | ||
# response.json.return_value = { | ||
# "api_endpoint": api_endpoint, | ||
# "headers": headers, | ||
# } | ||
# return response |
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.
Delete this commented-out code
…upyter-plugin-fork into sprint20-client-bug-tracker-fixes
…m/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint20-client-bug-tracker-fixes
…cker-fixes Backend review comments fixes
…cker-fixes removing unused imports
No description provided.