Home
last modified time | relevance | path

Searched refs:tmp_path (Results 1 – 17 of 17) sorted by relevance

/trunk/test/aoo-test/tests/smoke/
H A Dtest_convert.py55 def source(office, tmp_path): argument
57 path = tmp_path / "source.odt"
66 def test_odf_to_odf_keeps_the_text_and_leaves_nothing_open(office, source, tmp_path): argument
67 dst = tmp_path / "out.odt"
74 def test_text_export(office, source, tmp_path): argument
75 dst = tmp_path / "out.txt"
80 def test_pdf_export(office, source, tmp_path): argument
81 dst = tmp_path / "out.pdf"
87 def test_binary_word_export(office, source, tmp_path): argument
88 dst = tmp_path / "out.doc"
[all …]
H A Dtest_dump.py32 def stored(office, tmp_path, app, filter, name, text): argument
33 path = tmp_path / name
38 def test_writer_dump_has_the_text(office, tmp_path): argument
39 …d = office.call("dump_document", {"path": str(stored(office, tmp_path, "writer", "writer8", "d.odt…
43 def test_calc_dump_has_the_cell(office, tmp_path): argument
44 …d = office.call("dump_document", {"path": str(stored(office, tmp_path, "calc", "calc8", "d.ods", "…
48 def test_different_text_gives_a_different_dump(office, tmp_path): argument
49 …a = office.call("dump_document", {"path": str(stored(office, tmp_path, "writer", "writer8", "a.odt…
50 …b = office.call("dump_document", {"path": str(stored(office, tmp_path, "writer", "writer8", "b.odt…
54 def test_dump_leaves_nothing_open(office, tmp_path): argument
[all …]
H A Dtest_smoketest.py51 def test_new_save_close_reopen(office, tmp_path, app): argument
53 ….call("doc_cycle", {"factory": factory, "formats": formats, "workdir": str(tmp_path)}, timeout=180)
75 def test_extension_install_and_uninstall(office, tmp_path): argument
76 path = oxt.build(tmp_path)
H A Dtest_office.py57 def test_new_store_version_reload(aoo_offices, need_mode, tmp_path, app, mode): argument
60 dst = tmp_path / ("new." + ext)
68 def test_default_mode_writes_some_known_version(aoo_offices, tmp_path): argument
69 dst = tmp_path / "new.odt"
/trunk/test/aoo-test/tests/selftest/
H A Dtest_fetch.py47 def test_download_verify_and_reuse(tmp_path): argument
49 assert fetch.fetch(cache=tmp_path, opener=op, items=[ITEM]) == {"x": "downloaded"}
50 assert (tmp_path / "g/x.rng").read_bytes() == PAYLOAD
51 assert fetch.fetch(cache=tmp_path, opener=op, items=[ITEM]) == {"x": "present"}
55 def test_checksum_mismatch_leaves_nothing_behind(tmp_path): argument
56 res = fetch.fetch(cache=tmp_path, opener=Opener(b"tampered"), items=[ITEM])
58 assert list((tmp_path / "g").iterdir()) == []
61 def test_corrupt_cached_file_is_replaced_only_by_a_verified_download(tmp_path): argument
62 (tmp_path / "g").mkdir()
63 (tmp_path / "g/x.rng").write_bytes(b"corrupt")
[all …]
H A Dtest_stability.py47 def test_two_packages_differing_only_in_a_time_field_compare_equal(tmp_path): argument
48 a = package(tmp_path / "a.zip", BODY)
49 b = package(tmp_path / "b.zip", BODY.replace("07:47:54", "09:00:00"))
55 def test_any_other_difference_is_reported(tmp_path, change): argument
56 a = package(tmp_path / "a.zip", BODY)
57 b = package(tmp_path / "b.zip", change(BODY))
61 def test_a_difference_in_styles_xml_is_reported(tmp_path): argument
62 a = package(tmp_path / "a.zip", BODY)
63 b = package(tmp_path / "b.zip", BODY, "<office:document-styles>x</office:document-styles>")
67 def test_a_part_neither_package_has_is_not_compared(tmp_path): argument
[all …]
H A Dtest_odfversion.py40 def test_a_text_document_declares_its_version_in_content_and_manifest(tmp_path): argument
41 …p = package(tmp_path / "a.odt", "application/vnd.oasis.opendocument.text", '<office:document-conte…
46 def test_a_formula_document_has_a_mathml_root_without_a_version(tmp_path): argument
47 …p = package(tmp_path / "a.odf", "application/vnd.oasis.opendocument.formula", '<math xmlns="http:/…
H A Dtest_kinds.py79 def test_a_written_baseline_reads_back(tmp_path, monkeypatch): argument
80 monkeypatch.setattr(kinds, "BASELINE", tmp_path / "baseline")
/trunk/test/aoo-test/tests/harness/
H A Dtest_prepared.py48 def prepared(tmp_path, shared, own): argument
49 return documents.Prepared(shared, tmp_path, lambda builder: own)
52 def test_a_script_builder_runs_in_its_own_office_which_is_closed_afterwards(tmp_path): argument
54 path = prepared(tmp_path, shared, own).file(SCRIPT)
56 assert path == str(tmp_path / "base" / "out" / "base-hsqldb.odb")
59 def test_a_stalled_script_builder_is_run_once_more_in_another_directory(tmp_path): argument
61 path = prepared(tmp_path, FakeSession([]), own).file(SCRIPT)
62 …assert [c[2] for c in own.calls] == [str(tmp_path / "base" / "out"), str(tmp_path / "base" / "out-…
64 assert path == str(tmp_path / "base" / "out-retry" / "base-hsqldb.odb")
67 def test_a_script_builder_that_stalls_twice_fails_every_time_without_a_third_try(tmp_path): argument
[all …]
H A Dtest_install.py76 def test_not_an_install(tmp_path): argument
77 (tmp_path / "program").mkdir()
79 install.find_layout(tmp_path)
81 install.find_layout(tmp_path / "missing")
99 …ver_prefers_the_location_then_the_environment_then_the_default_places(fake, monkeypatch, tmp_path): argument
103 four = tmp_path / "openoffice4"
107 …stall, "default_locations", lambda environ=None: [str(four), str(five), str(tmp_path / "nothing")])
135 def test_interpreter_for_a_framework_path(tmp_path): argument
136 fw = tmp_path / "Library/Frameworks/Python.framework/Versions/3.14"
173 def test_falls_through_to_the_interpreter_libpyuno_links(fake, tmp_path): argument
[all …]
H A Dtest_expect.py26 def rows(tmp_path, text): argument
27 (tmp_path / "x.tsv").write_text(text, encoding="utf-8")
28 return expect.load(tmp_path)
31 def test_rows_of_each_kind_are_read(tmp_path): argument
32 r = rows(tmp_path, "# comment\n\na[1]\txfail\twhy\nb\tflaky\tsometimes\nc\tskip\tnot here\n")
37 def test_malformed_rows_are_refused(tmp_path, line): argument
39 rows(tmp_path, line)
42 def test_star_matches_any_characters_and_brackets_are_literal(tmp_path): argument
43 r = rows(tmp_path, "test_x[*|name.ods]\txfail\twhy\n")
H A Dtest_office.py52 def test_make_profile(tmp_path): argument
53 url = office.make_profile(tmp_path / "p", 4)
55 assert "<value>4</value>" in (tmp_path / "p" / "user" / "registrymodifications.xcu").read_text()
57 office.make_profile(tmp_path / "p", 4)
58 (tmp_path / "present").mkdir()
59 …assert office.make_profile(tmp_path / "present").startswith("file:///") # an empty direc…
85 def test_office_kill_takes_the_whole_tree(tmp_path): argument
86 o = office.Office([sys.executable, "-c", FAKE_OFFICE], log=tmp_path / "office.log").start()
88 while time.time() < deadline and not (tmp_path / "office.log").read_text():
90 assert o.alive() and "started" in (tmp_path / "office.log").read_text()
H A Dtest_real_install.py44 def test_a_python_can_import_uno(layout, tmp_path): argument
46 py = install.find_uno_python(layout, cache_file=tmp_path / "uno.json")
H A Dconftest.py77 def fake(tmp_path): argument
79 return lambda kind, **kw: make_install(tmp_path, kind, **kw)
H A Dtest_proc.py57 def test_plain_kill_would_leave_the_child(tmp_path): argument
/trunk/test/aoo-test/tests/odf/
H A Dtest_known_crashes.py32 def test_paragraph_bitmap_fill_mode_does_not_kill_the_office(aoo_offices, tmp_path): argument
35 …res = session.call("generate", {"builder": "para-fill-foreign", "outdir": str(tmp_path)}, timeout=…
39 def test_draw_annotations_step_does_not_stall_the_office(aoo_offices, tmp_path): argument
43 …res = session.call("generate", {"builder": "draw-annotations", "outdir": str(tmp_path / "out")}, t…
71 …ed_document_survives_every_save_mode(builder, name, reason, excluded_files, aoo_offices, tmp_path): argument
79 …session.call("convert", {"src": str(src), "dst": str(tmp_path / ("%s.%s" % (mode_name, kind))), "f…
/trunk/main/l10ntools/scripts/
H A Dfast_merge.pl219 my @tmp_path = split /\\/ , $path;
220 pop @tmp_path;
221 $path = join '\\' , @tmp_path;