mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
c32bc92f9c
Add end-to-end tests checking that every GraphQL endpoint is properly working and returning the expected result
17 lines
435 B
Python
17 lines
435 B
Python
#
|
|
# This file is distributed under the MIT License. See LICENSE.md for details.
|
|
#
|
|
from pytest import Parser, hookimpl
|
|
|
|
|
|
def pytest_addoption(parser: Parser):
|
|
parser.addoption("--binary", action="store")
|
|
parser.addoption("--root", action="store")
|
|
|
|
|
|
@hookimpl(tryfirst=True, hookwrapper=True)
|
|
def pytest_runtest_makereport(item, call):
|
|
outcome = yield
|
|
rep = outcome.get_result()
|
|
setattr(item, "rep_" + rep.when, rep)
|