Fix linting errors
This commit is contained in:
parent
efdf0b04ba
commit
d207b259cf
@ -1,5 +1,4 @@
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
from sqlalchemy.dialects.postgresql import insert
|
||||
|
||||
from atst.models.workspace_role import WorkspaceRole
|
||||
from atst.models.workspace_user import WorkspaceUser
|
||||
|
@ -3,7 +3,7 @@ from sqlalchemy.orm import sessionmaker, scoped_session
|
||||
|
||||
from atst.app import make_app, make_deps, make_config
|
||||
from atst.database import make_db
|
||||
from tests.mocks import MockApiClient, MockFundzClient, MockAuthzClient
|
||||
from tests.mocks import MockApiClient, MockFundzClient
|
||||
from atst.sessions import DictSessions
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from uuid import uuid4, UUID
|
||||
from uuid import uuid4
|
||||
|
||||
from atst.domain.users import Users
|
||||
from atst.domain.exceptions import NotFoundError, AlreadyExistsError
|
||||
|
@ -1,7 +1,7 @@
|
||||
import factory
|
||||
from uuid import uuid4
|
||||
|
||||
from atst.models import Request, RequestStatusEvent
|
||||
from atst.models import Request
|
||||
|
||||
|
||||
class RequestFactory(factory.Factory):
|
||||
|
@ -70,52 +70,3 @@ class MockFundzClient(MockApiClient):
|
||||
return self._get_response("GET", path, 200)
|
||||
else:
|
||||
return self._get_response("GET", path, 404)
|
||||
|
||||
|
||||
class MockAuthzClient(MockApiClient):
|
||||
_json = {
|
||||
"atat_permissions": [
|
||||
"view_original_jedi_request",
|
||||
"review_and_approve_jedi_workspace_request",
|
||||
"modify_atat_role_permissions",
|
||||
"create_csp_role",
|
||||
"delete_csp_role",
|
||||
"deactivate_csp_role",
|
||||
"modify_csp_role_permissions",
|
||||
"view_usage_report",
|
||||
"view_usage_dollars",
|
||||
"add_and_assign_csp_roles",
|
||||
"remove_csp_roles",
|
||||
"request_new_csp_role",
|
||||
"assign_and_unassign_atat_role",
|
||||
"view_assigned_atat_role_configurations",
|
||||
"view_assigned_csp_role_configurations",
|
||||
"deactivate_workspace",
|
||||
"view_atat_permissions",
|
||||
"transfer_ownership_of_workspace",
|
||||
"add_application_in_workspace",
|
||||
"delete_application_in_workspace",
|
||||
"deactivate_application_in_workspace",
|
||||
"view_application_in_workspace",
|
||||
"rename_application_in_workspace",
|
||||
"add_environment_in_application",
|
||||
"delete_environment_in_application",
|
||||
"deactivate_environment_in_application",
|
||||
"view_environment_in_application",
|
||||
"rename_environment_in_application",
|
||||
"add_tag_to_workspace",
|
||||
"remove_tag_from_workspace",
|
||||
],
|
||||
"atat_role": "ccpo",
|
||||
"id": "164497f6-c1ea-4f42-a5ef-101da278c012",
|
||||
"username": None,
|
||||
"workspace_roles": [],
|
||||
}
|
||||
|
||||
@tornado.gen.coroutine
|
||||
def post(self, path, **kwargs):
|
||||
return self._get_response("POST", path, 200, json=self._json)
|
||||
|
||||
@tornado.gen.coroutine
|
||||
def get(self, path, **kwargs):
|
||||
return self._get_response("POST", path, 200, json=self._json)
|
||||
|
Loading…
x
Reference in New Issue
Block a user