def end_state(self): flat = [] listener = None # or throwing listener _path = executable_fixture('exe_130_edit_add.py') from data_pipes.format_adapters.producer_script import \ producer_script_module_via_path_ as func ps = func(_path, listener) def recv_far_stream(normal_far_st): _one = next(normal_far_st) flat.append(_one) _two = next(normal_far_st) flat.append(_two) for no_see in normal_far_st: raise Exception('no') assert (ps.stream_for_sync_is_alphabetized_by_key_for_sync) with ps.open_traversal_stream(listener) as dcts: recv_far_stream(ps.stream_for_sync_via_stream(dcts)) return flat
def _far_130(): return executable_fixture('exe_130_edit_add.py')
def test_100_fails(self): _path = executable_fixture('no-ent.py') _msg = self._fail_against(_path) self.assertRegex(_msg, "\\bcharacter we don't like[^a-zA-Z]+-")
def _chimi_churri_far_path(): return executable_fixture('exe_100_bad_natural_key.py')
def given(self): produc_script_path = executable_fixture('exe_120_endcap_yes_no.py') return { 'producer_script_path': produc_script_path, 'near_collection': markdown_fixture('0110-endcap-yes-no.md') }
def given(self): _ = executable_fixture('exe_110_extra_cel.py') return { 'producer_script_path': _, 'near_collection': _same_near_collection() }
def given(self): # NOTE the dash in the below filename return { 'producer_script_path': executable_fixture('chimi-churry.py'), 'near_collection': _same_near_collection() }
def given(self): ps_path = executable_fixture('exe_110_extra_cel.py') return { 'producer_script_path': ps_path, 'near_collection': markdown_fixture('0000-no-such-file.md') }