diff --git a/tests/test_policies.py b/tests/test_policies.py index 0a1dbf03..14241950 100644 --- a/tests/test_policies.py +++ b/tests/test_policies.py @@ -51,7 +51,7 @@ def handle_message(self, content, meta): async def test_request_messages(): market_name = "Test" marketconfig = MarketConfig( - name=market_name, + market_id=market_name, opening_hours=rr.rrule(rr.HOURLY, dtstart=start, until=end), opening_duration=rd(hours=1), market_mechanism="pay_as_clear", diff --git a/tests/test_policies_contracts.py b/tests/test_policies_contracts.py index c055caf7..5fc664f9 100644 --- a/tests/test_policies_contracts.py +++ b/tests/test_policies_contracts.py @@ -31,7 +31,7 @@ def test_contract_functions(): index = pd.date_range( start=start, end=end, - freq="H", + freq="h", ) contract = { diff --git a/tests/test_simple_market_mechanisms.py b/tests/test_simple_market_mechanisms.py index 85197626..93913535 100644 --- a/tests/test_simple_market_mechanisms.py +++ b/tests/test_simple_market_mechanisms.py @@ -63,9 +63,12 @@ def test_market(): async def test_simple_market_mechanism(): for name, role in clearing_mechanisms.items(): - for skip_name in ["complex", "redispatch"]: + skip = False + for skip_name in ["complex", "redispatch", "contract"]: if skip_name in name: - continue + skip = True + if skip: + continue print(name) market_config = copy.copy(simple_dayahead_auction_config) diff --git a/tests/test_utils.py b/tests/test_utils.py index da12f479..1d774321 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -279,7 +279,7 @@ def test_plot_function(mock_pyplot): @patch("matplotlib.pyplot.show") -def test_plot_function(mock_pyplot): +def test_visualize_function(mock_pyplot): orderbook = create_orderbook() i = -1 for o in orderbook: