Remove export to txt, the .md markdown is really the same
Some checks failed
CI / test (push) Successful in 3m14s
Lint / test (push) Failing after 14s
Trivy / test (push) Successful in 20s

This commit is contained in:
Miguel Jacq 2025-11-15 12:12:18 +11:00
parent 7ef79c495b
commit 97e723ce34
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
6 changed files with 5 additions and 28 deletions

View file

@ -75,10 +75,6 @@ def test_get_all_entries_and_export(fresh_db, tmp_path):
fresh_db.export_csv(entries, str(csv_path))
assert csv_path.exists() and list(csv.reader(open(csv_path)))
txt_path = tmp_path / "export.txt"
fresh_db.export_txt(entries, str(txt_path))
assert txt_path.exists() and txt_path.read_text().strip()
md_path = tmp_path / "export.md"
fresh_db.export_markdown(entries, str(md_path))
md_text = md_path.read_text()

View file

@ -744,7 +744,6 @@ def test_on_insert_image_calls_editor_insert(
@pytest.mark.parametrize(
"filter_label, method",
[
("Text (*.txt)", "export_txt"),
("JSON (*.json)", "export_json"),
("CSV (*.csv)", "export_csv"),
("HTML (*.html)", "export_html"),
@ -1172,7 +1171,7 @@ def test_export_cancel_then_empty_filename(
monkeypatch.setattr(
mwmod.QFileDialog,
"getSaveFileName",
staticmethod(lambda *a, **k: ("", "Text (*.txt)")),
staticmethod(lambda *a, **k: ("", "Markdown (*.md)")),
raising=False,
)
w._export() # returns early at filename check