Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko committed Mar 2, 2021
1 parent b9384bf commit 08ad48c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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_flakes(allured_testdir):
allured_testdir.testdir.makepyfile("""
def some_func():
\"\"\"
>>> some_func()
\"\"\"
return True
""")

allured_testdir.run_with_allure("--doctest-modules")

assert_that(allured_testdir.allure_report,
has_test_case("some_func",
with_status("passed"))
)

0 comments on commit 08ad48c

Please sign in to comment.