Skip to content

Commit

Permalink
formatted imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellenn-A committed May 20, 2024
1 parent 6a88c98 commit b6d91a7
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from fastapi import FastAPI
from routes import router as api_router



def get_application() -> FastAPI:
"""
Controller to setup the application and return an Application
Expand Down
10 changes: 5 additions & 5 deletions app/routes/posts.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from fastapi import APIRouter,HTTPException
from typing import Optional, List, Any
from datetime import datetime
from enum import IntEnum, StrEnum
from typing import Any, List, Optional

import httpx
from fastapi import APIRouter, HTTPException
from fastapi.responses import JSONResponse
from pydantic import BaseModel
import httpx
import requests
from uagents import Model
from uagents import Model

veritableUrl = "http://localhost:3010"
peerUrl="http://localhost:3001/api"
Expand Down
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sys
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../app")))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../app")))
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import pytest
from fastapi import FastAPI
from asgi_lifespan import LifespanManager
import pytest_asyncio
from asgi_lifespan import LifespanManager
from fastapi import FastAPI
from httpx import AsyncClient


@pytest.fixture
def app() -> FastAPI:
"""
Expand Down
3 changes: 2 additions & 1 deletion tests/test_drcp_event_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
from fastapi import FastAPI, status
from httpx import AsyncClient
import pytest

pytestmark = pytest.mark.asyncio


Expand Down
3 changes: 2 additions & 1 deletion tests/test_post_query.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
from fastapi import FastAPI, status
from httpx import AsyncClient
import pytest

pytestmark = pytest.mark.asyncio


Expand Down
3 changes: 2 additions & 1 deletion tests/test_receive_response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
from fastapi import FastAPI, status
from httpx import AsyncClient
import pytest

pytestmark = pytest.mark.asyncio


Expand Down

0 comments on commit b6d91a7

Please sign in to comment.