Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Nov 10, 2023
1 parent 232b261 commit d3e039c
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 23 deletions.
1 change: 0 additions & 1 deletion backend/app/api/api_v1/endpoints/bookmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from app import crud, schemas
from app.api import deps
from app.api.deps import current_active_superuser, current_active_user
from app.core import auth
from app.models.user import User

router = APIRouter()
Expand Down
1 change: 0 additions & 1 deletion backend/app/api/api_v1/endpoints/caseinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from app import crud, schemas
from app.api import deps
from app.api.deps import current_active_superuser, current_active_user
from app.core import auth
from app.models.user import User

router = APIRouter()
Expand Down
4 changes: 1 addition & 3 deletions backend/app/api/api_v1/endpoints/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
from fastapi import APIRouter, Depends
from pydantic.networks import EmailStr

from app import models, schemas
from app.api import deps
from app import schemas
from app.api.deps import current_active_superuser
from app.app.utils import send_test_email
from app.core import auth

router = APIRouter()

Expand Down
4 changes: 1 addition & 3 deletions backend/app/api/deps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from typing import AsyncGenerator, AsyncIterator

from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker
from typing import AsyncIterator

from app.core import auth
from app.db.session import SessionLocal, engine
Expand Down
3 changes: 1 addition & 2 deletions backend/app/app/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
from datetime import datetime, timedelta
from pathlib import Path
from typing import Any, Dict, Optional
from typing import Any, Dict

import emails
from emails.template import JinjaTemplate
Expand Down
4 changes: 2 additions & 2 deletions backend/app/core/auth.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import uuid
from typing import Any, Optional
from typing import Optional

import redis.asyncio
from fastapi import Depends, Request, Response
from fastapi_users import BaseUserManager, FastAPIUsers, UUIDIDMixin, models
from fastapi_users import BaseUserManager, FastAPIUsers, UUIDIDMixin
from fastapi_users.authentication import (
AuthenticationBackend,
BearerTransport,
Expand Down
1 change: 0 additions & 1 deletion backend/app/core/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
import os
import secrets
import typing
from typing import Any

from pydantic import AnyHttpUrl, EmailStr, HttpUrl, PostgresDsn, field_validator
Expand Down
5 changes: 2 additions & 3 deletions backend/app/core/deps.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from typing import AsyncGenerator, AsyncIterator
from typing import AsyncGenerator

from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker

from app.core import auth
from app.db.session import SessionLocal, engine
from app.db.session import engine

async_session_maker = async_sessionmaker(engine, expire_on_commit=False)

Expand Down
3 changes: 1 addition & 2 deletions backend/app/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import logging
import pathlib

from fastapi import FastAPI, Request
from fastapi.staticfiles import StaticFiles
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from starlette.responses import FileResponse

Expand Down
3 changes: 0 additions & 3 deletions backend/tests/api/api_v1/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import uuid

import pytest
from fastapi.testclient import TestClient
from sqlalchemy.ext.asyncio import AsyncSession

from app.app.utils import send_test_email
from app.core.config import settings
from app.models.user import User

Expand Down
1 change: 0 additions & 1 deletion backend/tests/api/internal/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from fastapi.testclient import TestClient
from pytest_httpx._httpx_mock import HTTPXMock

from app.api.internal.endpoints.remote import default_acmg_rating
from app.core.config import settings

#: Host name to use for the mocked backend.
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/app/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest.mock import MagicMock, mock_open, patch
from unittest.mock import MagicMock, mock_open

import pytest
from starlette.requests import Request
Expand Down

0 comments on commit d3e039c

Please sign in to comment.