def test_all_complexes_parallelization(s): with config.override(PARALLEL_COMPLEX_EVALUATION=False): serial = compute.all_complexes(s.network, s.state) with config.override(PARALLEL_COMPLEX_EVALUATION=True): parallel = compute.all_complexes(s.network, s.state) assert sorted(serial) == sorted(parallel)
def test_all_complexes_standard(s): complexes = list(compute.all_complexes(s.network, s.state)) check_sia(complexes[0], standard_answer)
def test_all_complexes_standard(s, flushcache, restore_fs_cache): flushcache() complexes = list(compute.all_complexes(s.network, s.state)) check_sia(complexes[0], standard_answer)
def test_all_complexes_standard(standard, flushcache, restore_fs_cache): flushcache() complexes = list(compute.all_complexes(standard)) check_mip(complexes[7], standard_answer)
def test_all_complexes_standard(s, flushcache, restore_fs_cache): flushcache() complexes = list(compute.all_complexes(s.network, s.state)) check_mip(complexes[-1], standard_answer)