mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-15 21:11:05 +02:00
Remove unused PIFS text window commands
This commit is contained in:
parent
d0c0c67a39
commit
b9e30952ad
5 changed files with 19 additions and 191 deletions
|
|
@ -580,17 +580,6 @@ def test_cat_all_is_limited_to_text_files():
|
|||
executor.execute("cat dsid_json_file --all")
|
||||
opened_json = filesystem.open("dsid_json_file")
|
||||
assert opened_json.text == '{"body":"json"}'
|
||||
for command in (
|
||||
"head dsid_pdf_file",
|
||||
"tail dsid_pdf_file",
|
||||
"sed -n 1,1p dsid_pdf_file",
|
||||
"head dsid_md_file",
|
||||
"tail dsid_md_file",
|
||||
"sed -n 1,1p dsid_md_file",
|
||||
):
|
||||
with pytest.raises(PIFSCommandError, match="only supported for txt/text files"):
|
||||
executor.execute(command)
|
||||
|
||||
|
||||
def test_pageindex_structure_commands_are_limited_to_pdf_and_markdown():
|
||||
from pageindex.filesystem import PIFSCommandExecutor, PageIndexFileSystem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue