-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from EURODEO/issue_178-levels_multiple_range
Issue 178 levels filtering with combination
- Loading branch information
Showing
4 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
|
||
from utilities import get_levels_values | ||
|
||
levels_in_out = [ | ||
("1", ["100"]), | ||
("1,2", ["100", "200"]), | ||
("1,2, 3", ["100", "200", "300"]), | ||
("1/3", ["100/300"]), | ||
("../3", ["../300"]), | ||
("1/..", ["100/.."]), | ||
("R3/1.2/0.3", ["120", "150", "180"]), | ||
("1, 3/5, R3/5/0.1,11", ["100", "300/500", "500", "510", "520", "1100"]), | ||
] | ||
|
||
|
||
@pytest.mark.parametrize("levels_in, levels_out", levels_in_out) | ||
def test_get_levels_values(levels_in, levels_out): | ||
assert get_levels_values(levels_in) == levels_out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
939cfd0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit Test Coverage Report
939cfd0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit Test Coverage Report
939cfd0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit Test Coverage Report