Example #1
0
    def inner(app):
        if app != 'firefox':
            pytest.xfail(reason="{} support not implemented".format(app))

        binary = fixtures.binary()
        if not binary:
            pytest.skip("could not find a {} binary".format(app))
        return binary
Example #2
0
    def inner(app):
        if app != 'firefox':
            pytest.xfail(reason="{} support not implemented".format(app))

        # TODO Remove when this is running with |mach python-test|
        os.environ['PYTHON_TEST_TMP'] = tempfile.gettempdir()
        binary = fixtures.binary()
        if not binary:
            pytest.skip("could not find a {} binary".format(app))
        return binary
    def inner(app):
        if app not in ('chrome', 'firefox'):
            pytest.xfail(reason="{} support not implemented".format(app))

        if app == 'firefox':
            binary = fixtures.binary()
        elif app == 'chrome':
            binary = os.environ.get('CHROME_BINARY_PATH')

        if not binary:
            pytest.skip("could not find a {} binary".format(app))
        return binary
Example #4
0
    def inner(app):
        if app not in ("chrome", "chromium", "firefox"):
            pytest.xfail(reason="{} support not implemented".format(app))

        if app == "firefox":
            binary = fixtures.binary()
        elif app == "chrome":
            binary = os.environ.get("CHROME_BINARY_PATH")
        elif app == "chromium":
            binary = os.environ.get("CHROMIUM_BINARY_PATH")

        if not binary:
            pytest.skip("could not find a {} binary".format(app))
        return binary