Skip to content

Commit

Permalink
cleanest solution passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ucapgum committed Nov 6, 2020
1 parent 751dc4c commit 9de091c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion week05-testing/test_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
with open('week05-testing/fixture.yaml') as f:
inputs = yaml.load(f, Loader=yaml.FullLoader)

@pytest.mark.parametrize("interval1, interval2, expected", [x.values() for x in inputs.values()], ids=inputs.keys())
@pytest.mark.parametrize("interval1, interval2, expected", [x.values() for x in inputs.values()], ids=list(inputs.keys()))
def test_input(interval1, interval2, expected):
result = compute_overlap_time(eval(interval1), eval(interval2))
assert result == list(map(eval, expected))
Expand Down

1 comment on commit 9de091c

@ucapgum
Copy link
Owner Author

@ucapgum ucapgum commented on 9de091c Nov 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Answers UCL-RITS#92

Please sign in to comment.