Skip to content

Commit

Permalink
chore: remove duplicate fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz committed Aug 22, 2024
1 parent c09f527 commit 131f4f3
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions api/account/test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
This module contains pytest fixtures and configuration for the account API tests.
It sets up common test data, mocks, and other utilities used across multiple test files
in the account API test suite.
"""

# pylint: disable=unused-import
import pytest

Expand All @@ -8,23 +15,5 @@
scorer_account,
scorer_community,
scorer_user,
weight_config,
)


@pytest.fixture
def weight_config():
config = WeightConfiguration.objects.create(
version="v1",
threshold=5.0,
active=True,
description="Test",
)

for provider, weight in GITCOIN_PASSPORT_WEIGHTS.items():
WeightConfigurationItem.objects.create(
weight_configuration=config,
provider=provider,
weight=float(weight),
)

return config

0 comments on commit 131f4f3

Please sign in to comment.