Skip to content

Commit

Permalink
Fix flake8 concern with lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
bgmerrell committed May 5, 2017
1 parent a1a33b8 commit aa35322
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,13 @@ def test_simulate_factors(config):

def test_simulate_factors_only_factor(config):
FACTOR_NUM = 2
cfg_filter_fn = lambda cfg: cfg['meta.sim.index'] == FACTOR_NUM

def single_factor_filter_fn(cfg):
return cfg['meta.sim.index'] == FACTOR_NUM

factors = [(['sim.seed'], [[1], [2], [3]])]
results = simulate_factors(
config, factors, TopTest, config_filter=cfg_filter_fn)
config, factors, TopTest, config_filter=single_factor_filter_fn)
assert len(results) == 1
for result in results:
assert result['sim.exception'] is None
Expand Down

0 comments on commit aa35322

Please sign in to comment.