Fixed broken python tests
Browse files- backend/__init__.py +0 -0
- backend/app/__init__.py +0 -1
- backend/app/main.py +0 -1
- backend/tests/__init__.py +0 -0
- pyproject.toml +5 -0
backend/__init__.py
ADDED
File without changes
|
backend/app/__init__.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import os
|
2 |
-
from pathlib import Path
|
3 |
from dotenv import load_dotenv, find_dotenv
|
4 |
|
5 |
# Load environment variables from .env file in project root
|
|
|
1 |
import os
|
|
|
2 |
from dotenv import load_dotenv, find_dotenv
|
3 |
|
4 |
# Load environment variables from .env file in project root
|
backend/app/main.py
CHANGED
@@ -5,7 +5,6 @@ from backend.app.problem_generator import ProblemGenerator
|
|
5 |
|
6 |
app = FastAPI()
|
7 |
|
8 |
-
# Add CORS middleware
|
9 |
app.add_middleware(
|
10 |
CORSMiddleware,
|
11 |
allow_origins=["*"], # In production, replace with specific origins
|
|
|
5 |
|
6 |
app = FastAPI()
|
7 |
|
|
|
8 |
app.add_middleware(
|
9 |
CORSMiddleware,
|
10 |
allow_origins=["*"], # In production, replace with specific origins
|
backend/tests/__init__.py
ADDED
File without changes
|
pyproject.toml
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
name = "backend"
|
3 |
version = "0.1.0"
|
4 |
description = "Backend for the application"
|
|
|
5 |
dependencies = [
|
6 |
"chainlit>=2.0.4",
|
7 |
"numpy>=2.2.2",
|
@@ -22,8 +23,12 @@ dependencies = [
|
|
22 |
"pytest-dotenv>=0.5.2",
|
23 |
"unstructured",
|
24 |
"qdrant-client>=1.6.0",
|
|
|
25 |
]
|
26 |
|
|
|
|
|
|
|
27 |
[project.optional-dependencies]
|
28 |
test = [
|
29 |
"pytest>=7.4.0",
|
|
|
2 |
name = "backend"
|
3 |
version = "0.1.0"
|
4 |
description = "Backend for the application"
|
5 |
+
requires-python = "==3.12"
|
6 |
dependencies = [
|
7 |
"chainlit>=2.0.4",
|
8 |
"numpy>=2.2.2",
|
|
|
23 |
"pytest-dotenv>=0.5.2",
|
24 |
"unstructured",
|
25 |
"qdrant-client>=1.6.0",
|
26 |
+
"ipykernel",
|
27 |
]
|
28 |
|
29 |
+
[tool.setuptools]
|
30 |
+
py-modules = []
|
31 |
+
|
32 |
[project.optional-dependencies]
|
33 |
test = [
|
34 |
"pytest>=7.4.0",
|