Skip to content

Commit

Permalink
FIX: Add core to fix broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
genedan committed Jan 22, 2025
1 parent 24fa8eb commit 195a8c3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion faslr/tests/index/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pandas as pd
import pytest

import faslr.core as core
from faslr.index import (
calculate_index_factors,
IndexPane,
Expand Down Expand Up @@ -44,6 +45,24 @@
from pandas import DataFrame


@pytest.fixture()
def f_core(
sample_db: str,
setup_config: str
):
"""
Fixture to initialize the FASLR core.
:param sample_db:
:param setup_config:
:return: The FASLR Core.
"""

core.set_db(sample_db)

yield core


@pytest.fixture()
def df_tort_index(
input_idx: dict = tort_index
Expand Down Expand Up @@ -217,7 +236,8 @@ def test_index_pane_blank(


def test_index_inventory(
qtbot: QtBot
qtbot: QtBot,
f_core
) -> None:
"""
Test the index inventory widget.
Expand Down

0 comments on commit 195a8c3

Please sign in to comment.