Files
revng-revng/tests/daemon/conftest.py
Giacomo Vercesi c32bc92f9c revng.daemon: introduce tests
Add end-to-end tests checking that every GraphQL endpoint is properly
working and returning the expected result
2022-04-26 15:05:30 +02:00

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)