Skip to content

Commit

Permalink
add pgvector
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Oct 4, 2024
1 parent beba917 commit ba33568
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions py/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@


# Vectors
@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def dimension():
return 128


@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def num_entries():
return 100


@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def sample_entries(dimension, num_entries):
def generate_random_vector_entry(
id_value: int, dimension: int
Expand Down Expand Up @@ -69,18 +69,18 @@ def app_config():
return AppConfig(project_name=random_project_name)

# Crypto
@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def crypto_config(app_config):
return BCryptConfig(app=app_config)


@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def crypto_provider(crypto_config, app_config):
return BCryptProvider(crypto_config)


# Postgres
@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def db_config(app_config):
return DatabaseConfig.create(
provider="postgres", app=app_config
Expand Down Expand Up @@ -131,7 +131,7 @@ async def temporary_postgres_db_provider(


# Auth
@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def auth_config(app_config):
return AuthConfig(
secret_key="test_secret_key",
Expand Down

0 comments on commit ba33568

Please sign in to comment.