forked from allure-framework/allure-python
-
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.
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
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
Empty file.
19 changes: 19 additions & 0 deletions
19
allure-pytest/test/integration/pytest_pluginmanager/pytest_get_allure_plugin_test.py
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 allure | ||
from hamcrest import assert_that | ||
from allure_commons_test.report import has_test_case | ||
from allure_commons_test.result import with_status | ||
|
||
|
||
@allure.feature("Integration") | ||
def test_pytest_get_allure_listener_plugin(allured_testdir): | ||
allured_testdir.testdir.makepyfile(""" | ||
def test_pytest_get_allure_listener_plugin(request): | ||
assert request.config.pluginmanager.get_plugin('allure_listener') | ||
""") | ||
|
||
allured_testdir.run_with_allure() | ||
|
||
assert_that(allured_testdir.allure_report, | ||
has_test_case("test_pytest_get_allure_listener_plugin", | ||
with_status("passed")) | ||
) |