def aeron_directory(): temp_dirs = temp_dir_candidates() where = os.path.join(tempdir, next(temp_dirs)) with media_driver.launch(aeron_directory_name=where): yield where
def test_launch__customised(custom_aeron_dir): with media_driver.launch(aeron_directory_name=custom_aeron_dir) as driver: assert_that(driver, is_not(empty()))
def launch(**kwargs): with media_driver.launch(**kwargs): pass
def test_launch__default(): with media_driver.launch() as driver: assert_that(driver, is_not(empty()))