Skip to content

fides unit tests create an empty ":memory:" file and doesn't delete it after the tests have passed. #1888

@AlyaGomaa

Description

@AlyaGomaa
@pytest.fixture
def db():
    # Create an in-memory SQLite database for testing
    logger = MagicMock()  # Mock the logger for testing purposes
    db_instance = FidesSQLiteDB(logger, ":memory:")  # Using in-memory DB
    return db_instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Better-testsAn issue that is related to how we test slips, unit tests,integration test, CI

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions