def run_all(args): kwargs = {"html":args["html"]} suite = tags.get_suite(args["suite"]) if suite: report = suite() printer = printers.html if args["html"] else printers.get_default() printers.print_report(report,printer,**kwargs)
from pyinq import discover_tests from pyinq import printers from pyinq.printers import html suite = discover_tests("examples", suite="suite1", pattern="assert_tests") if suite: report = suite() printers.print_report(report, html, html=open("deprecated_mapping.html", "w"))
from pyinq import discover_tests from pyinq import printers from pyinq.printers.deprecated import html suite = discover_tests('examples', suite="suite1", pattern="assert_tests") if suite: report = suite() printers.print_report(report, html, html=open("deprecated.html", 'w'))
from pyinq import discover_tests from pyinq import printers from pyinq.printers.deprecated import cli suite = discover_tests('examples', suite="suite1", pattern="assert_tests") if suite: report = suite() printers.print_report(report, cli)
from pyinq import discover_tests from pyinq import printers suite = discover_tests('examples', suite="hello") if suite: report = suite() printers.print_report(report)