Skip to content

Commit

Permalink
Remove lazy_fixture usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
edtechre committed Mar 17, 2024
1 parent aba7019 commit 348d59d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import pytest
import re
from .fixtures import * # noqa: F401
from .util import * # noqa: F401
from unittest.mock import Mock
from pybroker.cache import CacheDateFields
from pybroker.common import ModelSymbol, TrainedModel, to_datetime
Expand Down Expand Up @@ -179,7 +180,7 @@ def _assert_models(self, models, expected_model_syms):
"param_test_data",
[
pd.DataFrame(columns=["symbol", "date"]),
pytest.lazy_fixture("test_data"),
"test_data",
],
)
def test_train_models(
Expand All @@ -189,7 +190,9 @@ def test_train_models(
param_test_data,
ind_data,
cache_date_fields,
request,
):
param_test_data = get_fixture(request, param_test_data)
mixin = ModelsMixin()
models = mixin.train_models(
model_syms,
Expand Down

0 comments on commit 348d59d

Please sign in to comment.