From d36ff829dbc6436b2c3606e5d2c1de47bed95645 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Sun, 20 Jul 2025 23:15:08 -0300 Subject: [PATCH] Remove the shared fixtures that are available on conftest.py --- tests/service/test_entry_service.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/service/test_entry_service.py b/tests/service/test_entry_service.py index b28e3c1..7cef1c3 100644 --- a/tests/service/test_entry_service.py +++ b/tests/service/test_entry_service.py @@ -14,23 +14,6 @@ from pilgrim.models.photo import Photo from pilgrim.service.entry_service import EntryService -@pytest.fixture(scope="function") -def db_session(): - engine = create_engine("sqlite:///:memory:") - - Base.metadata.create_all(engine) - Session = sessionmaker(bind=engine) - session = Session() - yield session - session.close() - Base.metadata.drop_all(engine) - -@pytest.fixture -def populated_db_session(db_session): - travel_diary = TravelDiary(name="My Travel Diary", directory_name="viagem-teste") - db_session.add(travel_diary) - db_session.commit() - return db_session @pytest.fixture def session_with_an_entry(populated_db_session):