Skip to content

Commit

Permalink
FS-4917 - Remove unused tasks and move test data seeding into tests d…
Browse files Browse the repository at this point in the history
…irectory
  • Loading branch information
wjrm500 committed Dec 23, 2024
1 parent d7390a8 commit 014b60e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 201 deletions.
22 changes: 0 additions & 22 deletions tasks/__init__.py

This file was deleted.

86 changes: 0 additions & 86 deletions tasks/db_tasks.py

This file was deleted.

87 changes: 0 additions & 87 deletions tasks/export_tasks.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from app.create_app import create_app
from config import Config
from tasks.test_data import init_unit_test_data
from tasks.test_data import insert_test_data
from tests.seed_test_data import init_unit_test_data
from tests.seed_test_data import insert_test_data

pytest_plugins = ["fsd_test_utils.fixtures.db_fixtures"]

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from app.db.queries.fund import get_fund_by_id
from app.db.queries.round import add_round
from app.db.queries.round import get_round_by_id
from tasks.test_data import BASIC_FUND_INFO
from tasks.test_data import BASIC_ROUND_INFO
from tests.seed_test_data import BASIC_FUND_INFO
from tests.seed_test_data import BASIC_ROUND_INFO


def test_add_organisation(flask_test_client, _db, clear_test_data):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from app.import_config.load_form_json import load_form_jsons
from app.shared.data_classes import Condition
from app.shared.data_classes import ConditionValue
from tasks.test_data import BASIC_FUND_INFO
from tasks.test_data import BASIC_ROUND_INFO
from tests.seed_test_data import BASIC_FUND_INFO
from tests.seed_test_data import BASIC_ROUND_INFO


def test_build_form_json_no_conditions(seed_dynamic_data):
Expand Down

0 comments on commit 014b60e

Please sign in to comment.