Skip to content

Commit

Permalink
a few more tests marked as 'slow'
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature committed Nov 11, 2024
1 parent fb8a8fe commit 4c12f35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ def test_simple_system_portfolio_estimated(
print(my_system.portfolio.get_instrument_weights().tail(5))
print(my_system.portfolio.get_instrument_diversification_multiplier().tail(5))

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_portfolio_fixed(
self, data, raw_data, my_rules, my_config, fcs, combiner, possizer, portfolio
):
Expand All @@ -253,6 +254,7 @@ def test_simple_system_portfolio_fixed(

print(my_system.portfolio.get_notional_position("SOFR").tail(5))

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_costs(
self,
data,
Expand Down Expand Up @@ -280,6 +282,7 @@ def test_simple_system_costs(
print(profits.gross.percent.stats())
print(profits.net.percent.stats())

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_config_object(self, data, ewmac_8, ewmac_32):
my_config = Config(
dict(
Expand Down Expand Up @@ -357,6 +360,7 @@ def test_simple_system_risk_overlay(self, data, ewmac_8, ewmac_32):
)
print(my_system.portfolio.get_notional_position("SOFR").tail(5))

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_config_import(self, data):
my_config = Config("systems.provided.example.simplesystemconfig.yaml")
my_config.exclude_instrument_lists = dict(
Expand Down

0 comments on commit 4c12f35

Please sign in to comment.