def pytest_generate_tests(metafunc): util.set_test_environ() test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) driver.py_test_generator( test_dir, intercept=simple_wsgi.SimpleWsgi, fixture_module=test_intercept, response_handlers=[test_intercept.TestResponseHandler], metafunc=metafunc)
def pytest_generate_tests(metafunc): test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) driver.py_test_generator( test_dir, url=os.environ['TEST_URL'], host='localhost', metafunc=metafunc )
def pytest_generate_tests(metafunc): os.environ['GABBI_TEST_URL'] = 'takingnames' test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) driver.py_test_generator( test_dir, intercept=simple_wsgi.SimpleWsgi, fixture_module=test_intercept, response_handlers=[test_intercept.TestResponseHandler], metafunc=metafunc)
def pytest_generate_tests(metafunc): test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) # NOTE(fmontei): While only `url` or `host` is needed, strangely both # are needed because we use `pytest-html` which throws an error without # `host`. driver.py_test_generator( test_dir, url=os.environ['DECKHAND_TEST_URL'], host='localhost', # NOTE(fmontei): When there are multiple handlers listed that accept # the same content-type, the one that is earliest in the list will be # used. Thus, we cannot specify multiple content handlers for handling # list/dictionary responses from the server using different handlers. content_handlers=[MultidocJsonpaths], metafunc=metafunc)
def test_gabbits(): test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) # Pass "require_ssl=True" as an argument to force all tests # to use SSL in requests. test_generator = driver.py_test_generator( test_dir, intercept=wsgiapp.app, fixture_module=fixtures) for test in test_generator: yield test
def test_gabbits(): test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) # Pass "require_ssl=True" as an argument to force all tests # to use SSL in requests. test_generator = driver.py_test_generator(test_dir, intercept=wsgiapp.app, fixture_module=fixtures) for test in test_generator: yield test
def test_from_build(): os.environ['GABBI_TEST_URL'] = 'takingnames' test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) test_generator = driver.py_test_generator( test_dir, intercept=simple_wsgi.SimpleWsgi, fixture_module=test_intercept, response_handlers=[test_intercept.TestResponseHandler]) # TODO(cdent): Where is our Python3! # yield from test_generator for test in test_generator: yield test
def pytest_generate_tests(metafunc): test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) driver.py_test_generator( test_dir, intercept=wsgiapp.app, fixture_module=fixtures, metafunc=metafunc)
def pytest_generate_tests(metafunc): test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) driver.py_test_generator(test_dir, intercept=wsgiapp.app, fixture_module=fixtures, metafunc=metafunc)
def pytest_generate_tests(metafunc): test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) driver.py_test_generator(test_dir, metafunc=metafunc, **BUILD_TEST_ARGS)
def pytest_generate_tests(metafunc): util.set_test_environ() test_dir = os.path.join(os.path.dirname(__file__), TESTS_DIR) driver.py_test_generator(test_dir, metafunc=metafunc, **BUILD_TEST_ARGS)