Skip to content

Commit

Permalink
no portfolio fixture needed
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Jan 1, 2024
1 parent 16be850 commit bd64741
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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)

0 comments on commit bd64741

Please sign in to comment.