Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
minor: blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
suvayu committed Jan 25, 2022
1 parent eda1fd8 commit 8b0061c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ def mandatory_opts(cls, obj_opts, values):
):
return obj_opts
else:
raise ValueError(
f"missing mandatory options: {mandatory} not in {keys}"
)
raise ValueError(f"missing mandatory options: {mandatory} not in {keys}")


Objective_t = make_typedconfig(
Expand All @@ -139,9 +137,7 @@ def mandatory_opts(cls, obj_opts, values):


def test_conditional_keys():
obj_opts = ObjOpts_t(
cost_class={"monetary": 1}, sense="minimize", moreopts="foo"
)
obj_opts = ObjOpts_t(cost_class={"monetary": 1}, sense="minimize", moreopts="foo")
optimiser_settings = Objective_t(
objective="minmax_cost_optimization", objective_options=obj_opts
)
Expand Down Expand Up @@ -173,9 +169,7 @@ def test_conditional_keys():
def test_nested_config():
run = RunConfig_t(mode="normal", eff=0.42)
rng = RangeType0(1, 5)
obj_opts = ObjOpts_t(
cost_class={"monetary": 1}, sense="minimize", moreopts=None
)
obj_opts = ObjOpts_t(cost_class={"monetary": 1}, sense="minimize", moreopts=None)
optimiser_settings = Objective_t(
objective="minmax_cost_optimization", objective_options=obj_opts
)
Expand Down

0 comments on commit 8b0061c

Please sign in to comment.