From bd64741184670b309ce735ef920c641ffff978c7 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Mon, 1 Jan 2024 20:55:41 +0400 Subject: [PATCH] no portfolio fixture needed --- tests/conftest.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 2f9b238..0d5adde 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,10 +6,6 @@ import pandas as pd import pytest -from cvx.simulator.portfolio import EquityPortfolio - -# from cvx.simulator.portfolio import build_portfolio - @pytest.fixture(scope="session", name="resource_dir") def resource_fixture(): @@ -22,9 +18,3 @@ def prices(resource_dir): return pd.read_csv( resource_dir / "price.csv", index_col=0, header=0, parse_dates=True ) - - -@pytest.fixture() -def portfolio(prices): - positions = pd.DataFrame(index=prices.index, columns=prices.columns, data=1.0) - return EquityPortfolio(prices=prices, stocks=positions)