Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Sep 19, 2024
1 parent 96e5004 commit e46d7e5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
import pytest
import pytest # noqa
from fastapi.testclient import TestClient
from sqlmodel import Session

from merchants.database import engine
from merchants.FastapiApp import app

# Create a test client
client = TestClient(app)


# Mock database session
@pytest.fixture
def mock_db():
with Session(engine) as session:
yield session


# Test root endpoint
def test_root():
response = client.get("/")
Expand Down

0 comments on commit e46d7e5

Please sign in to comment.