added test for choose_fence

This commit is contained in:
Paul Gauthier 2023-07-06 11:08:13 -07:00
parent b03f2e54cc
commit 610dd223b5
2 changed files with 26 additions and 3 deletions

View file

@ -290,7 +290,7 @@ class Coder:
def get_abs_fnames_content(self):
for fname in list(self.abs_fnames):
content = self.io.read_text(fname)
dump(fname, content)
if content is None:
relative_fname = self.get_rel_fname(fname)
self.io.tool_error(f"Dropping {relative_fname} from the chat.")
@ -303,8 +303,6 @@ class Coder:
for _fname, content in self.get_abs_fnames_content():
all_content += content + "\n"
all_content = all_content.splitlines()
good = False
for fence_open, fence_close in self.fences:
if fence_open in all_content or fence_close in all_content: