-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
8 changed files
with
165 additions
and
11 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
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
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
Empty file.
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,29 @@ | ||
from allure_pytest.utils import get_history_id | ||
from allure_commons.model2 import Parameter | ||
|
||
|
||
def test_no_dependency_on_parameters_order(): | ||
assert get_history_id("my-full-name", [ | ||
Parameter(name="a", value="1"), | ||
Parameter(name="b", value="2") | ||
], {}) == get_history_id("my-full-name", [ | ||
Parameter(name="b", value="2"), | ||
Parameter(name="a", value="1") | ||
], {}) | ||
|
||
|
||
def test_original_values_are_used(): | ||
assert get_history_id("my-full-name", [ | ||
Parameter(name="a", value="1") | ||
], {"a": "b"}) == get_history_id("my-full-name", [ | ||
Parameter(name="a", value="b") | ||
], {}) | ||
|
||
|
||
def test_excluded_values_are_ignored(): | ||
assert get_history_id("my-full-name", [ | ||
Parameter(name="a", value="1") | ||
], {}) == get_history_id("my-full-name", [ | ||
Parameter(name="a", value="1"), | ||
Parameter(name="b", value="2", excluded=True) | ||
], {}) |
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