Skip to content

Commit

Permalink
cleared the routing of canvas,annotation_page and annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-crkn committed Nov 1, 2024
1 parent 1f49657 commit 6b45745
Show file tree
Hide file tree
Showing 11 changed files with 1,029 additions and 182 deletions.
42 changes: 0 additions & 42 deletions api/annotation.py

This file was deleted.

39 changes: 0 additions & 39 deletions api/annotation_page.py

This file was deleted.

40 changes: 0 additions & 40 deletions api/canvas.py

This file was deleted.

17 changes: 17 additions & 0 deletions load_testing/test_files.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from locust import HttpUser,task,between
from locust.stats import global_stats
import random
manifest_ids = ["69429/g05t3fx73x7t"]
class AppUser(HttpUser):
wait_time = between(2,5)

def on_start(self) -> None:
"""
Clear statistics at the start of the test.
"""
global_stats.reset_all()

@task
def get_files(self):
manifest_id = random.choice(manifest_ids)
self.client.get("/manifest/" + str(manifest_id))
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from fastapi.middleware.cors import CORSMiddleware
from Azure_auth.auth import BACKEND_CORS_ORIGINS, OPENAPI_CLIENT_ID, SCOPE_NAME
from api.manifest import router as manifest_router
from api.canvas import router as canvas_router
from fastapi.responses import RedirectResponse
from utils.lifespan_handler import lifespan
app = FastAPI(
Expand Down Expand Up @@ -44,6 +43,6 @@ async def redirect_to_docs():
return RedirectResponse(url="/docs")

app.include_router(manifest_router)
#app.include_router(canvas_router)



Loading

0 comments on commit 6b45745

Please sign in to comment.