Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Feb 14, 2024
1 parent d6dc13a commit c8aa54d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_policies_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_contract_functions():
index = pd.date_range(
start=start,
end=end,
freq="H",
freq="h",
)

contract = {
Expand Down
7 changes: 5 additions & 2 deletions tests/test_simple_market_mechanisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c8aa54d

Please sign in to comment.