Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Backend API modules."""
1 change: 1 addition & 0 deletions backend/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Backend API endpoints."""
1 change: 1 addition & 0 deletions server/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Server-side contact handler and GDPR compliance modules."""
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Test suite for corporate website."""
1 change: 1 addition & 0 deletions tests/integration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Integration tests."""
7 changes: 5 additions & 2 deletions tests/integration/test_api_endpoints.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import pytest
import requests
from fastapi import FastAPI
from fastapi.testclient import TestClient
from backend.api.users import router

class TestUserAPI:
def setup_method(self):
self.client = TestClient(router)
# Create a FastAPI app and include the router
app = FastAPI()
app.include_router(router)
self.client = TestClient(app)

def test_get_users_endpoint(self):
response = self.client.get("/users")
Expand Down
Loading