← Về thư mục
tests/test_artifact_workbench.py
- _Hub · class · L48-L59 — class _Hub
- emitter · method · L49-L50 — def emitter(self, root_frame_id)
- broadcast · method · L52-L53 — def broadcast(self, root_frame_id, event)
- has_subscriber · method · L55-L56 — def has_subscriber(self, root_frame_id)
- drop_frame · method · L58-L59 — def drop_frame(self, root_frame_id)
- _cfg · function · L62-L70 — def _cfg(tmp_path, *, workbench: bool = True, trusted: bool = False) -> Config
- _setup · function · L73-L78 — def _setup(tmp_path, *, workbench: bool = True, trusted: bool = False)
- _call · function · L81-L92 — def _call(handler, method, path, *, body=None, query=None)
- _freeze_version · function · L95-L98 — def _freeze_version(runner, record: dict, path: Path) -> None
- _checksum · function · L101-L102 — def _checksum(path: Path) -> str
- _save_snapshot · function · L105-L125 — def _save_snapshot( runner, fid: str, path: Path, data: bytes, *, content_type: str = "application/octet-stream", ) -> dict
- test_stage9_flag_defaults_off · function · L128-L132 — def test_stage9_flag_defaults_off()
- test_csv_sort_and_filter_apply_to_the_full_dataset · function · L135-L142 — def test_csv_sort_and_filter_apply_to_the_full_dataset()
- test_numeric_sort_with_empty_cells_has_one_total_order · function · L145-L150 — def test_numeric_sort_with_empty_cells_has_one_total_order()
- test_table_rows_are_normalized_to_the_declared_header_width · function · L153-L156 — def test_table_rows_are_normalized_to_the_declared_header_width()
- test_text_edit_creates_v2_and_identical_bytes_do_not · function · L159-L190 — def test_text_edit_creates_v2_and_identical_bytes_do_not(tmp_path)
- test_benzene_structure_saves_six_carbons_and_reopens · function · L193-L229 — def test_benzene_structure_saves_six_carbons_and_reopens(tmp_path)
- test_stage9_structure_save_preserves_a_nested_artifact_path · function · L232-L259 — def test_stage9_structure_save_preserves_a_nested_artifact_path(tmp_path)
- test_pdf_and_html_comments_are_quoted_into_the_next_turn · function · L262-L336 — def test_pdf_and_html_comments_are_quoted_into_the_next_turn(tmp_path)
- test_pdf_text_scanner_is_linear_on_malformed_tj_array · function · L339-L347 — def test_pdf_text_scanner_is_linear_on_malformed_tj_array(): # The former nested regex took exponentially longer for each extra empty # string here (25 entries took seconds). This malformed Artifact is small # enough to be a cheap regression while leaving a wide CI timing margin.
- test_pdf_text_scanner_accepts_balanced_strings_and_tj_kerning · function · L350-L354 — def test_pdf_text_scanner_accepts_balanced_strings_and_tj_kerning()
- test_ketcher_is_placeholder_off_and_real_assets_on · function · L357-L375 — def test_ketcher_is_placeholder_off_and_real_assets_on()
- test_the_ketcher_page_carries_no_inline_script · function · L378-L409 — def test_the_ketcher_page_carries_no_inline_script()
- test_workbench_routes_are_forbidden_when_the_flag_is_off · function · L412-L425 — def test_workbench_routes_are_forbidden_when_the_flag_is_off(tmp_path)
- test_table_optional_version_id_never_falls_back_to_latest · function · L428-L468 — def test_table_optional_version_id_never_falls_back_to_latest(tmp_path)
- wrapped · function · L448-L450 — def wrapped(artifact, version_id=None)
- test_table_and_diff_http_routes · function · L471-L503 — def test_table_and_diff_http_routes(tmp_path)
- test_workbench_read_cap_accepts_the_boundary_and_rejects_one_byte_over · function · L514-L532 — def test_workbench_read_cap_accepts_the_boundary_and_rejects_one_byte_over( tmp_path, monkeypatch, filename, data, route )
- test_diff_read_cap_accepts_the_boundary_and_rejects_one_byte_over · function · L535-L556 — def test_diff_read_cap_accepts_the_boundary_and_rejects_one_byte_over( tmp_path, monkeypatch )
- test_delimited_shape_limits_include_rectangularized_sparse_rows · function · L559-L575 — def test_delimited_shape_limits_include_rectangularized_sparse_rows(monkeypatch)
- test_html_outline_rejects_deep_and_excessive_element_shapes · function · L578-L592 — def test_html_outline_rejects_deep_and_excessive_element_shapes(tmp_path, monkeypatch)
- test_parquet_compressed_size_is_rejected_before_optional_engine_import · function · L595-L603 — def test_parquet_compressed_size_is_rejected_before_optional_engine_import( tmp_path, monkeypatch )
- test_parquet_metadata_limits_run_before_decode · function · L606-L691 — def test_parquet_metadata_limits_run_before_decode(tmp_path, monkeypatch)
- FakeMetadata · class · L613-L626 — class FakeMetadata
- num_rows · method · L618-L619 — def num_rows(self)
- row_group · method · L621-L626 — def row_group(self, _index)
- FakeScalar · class · L628-L630 — class FakeScalar
- as_py · method · L629-L630 — def as_py(self)
- FakeColumn · class · L632-L635 — class FakeColumn
- getitem · method · L633-L635 — def getitem(self, index)
- FakeBatch · class · L637-L642 — class FakeBatch
- column · method · L640-L642 — def column(self, index)
- FakeTable · class · L644-L651 — class FakeTable
- to_batches · method · L649-L651 — def to_batches(self, *, max_chunksize)
- FakeParquetFile · class · L653-L662 — class FakeParquetFile
- init · method · L656-L657 — def init(self, source)
- read · method · L659-L662 — def read(self)
- test_parquet_rejects_decoded_and_dictionary_projection_expansion · function · L694-L795 — def test_parquet_rejects_decoded_and_dictionary_projection_expansion( tmp_path, monkeypatch )
- FakeMetadata · class · L704-L717 — class FakeMetadata
- num_rows · method · L709-L710 — def num_rows(self)
- row_group · method · L712-L717 — def row_group(self, _index): # A dictionary page plus compact indices can stay below the limit # even when decoding/projecting every repeated value cannot.
- FakeScalar · class · L719-L726 — class FakeScalar
- init · method · L720-L721 — def init(self, value)
- as_py · method · L723-L726 — def as_py(self)
- FakeColumn · class · L728-L730 — class FakeColumn
- getitem · method · L729-L730 — def getitem(self, index)
- FakeBatch · class · L732-L739 — class FakeBatch
- num_rows · method · L734-L735 — def num_rows(self)
- column · method · L737-L739 — def column(self, index)
- FakeTable · class · L741-L756 — class FakeTable
- num_rows · method · L745-L746 — def num_rows(self)
- nbytes · method · L749-L750 — def nbytes(self)
- to_batches · method · L752-L756 — def to_batches(self, *, max_chunksize)
- FakeParquetFile · class · L758-L765 — class FakeParquetFile
- init · method · L761-L762 — def init(self, source)
- read · method · L764-L765 — def read(self)
- test_diff_rejects_unknown_and_foreign_versions_identically · function · L798-L848 — def test_diff_rejects_unknown_and_foreign_versions_identically(tmp_path)
- test_workbench_invalid_numbers_are_stable_400s · function · L851-L898 — def test_workbench_invalid_numbers_are_stable_400s(tmp_path)
- test_legacy_version_without_snapshot_never_falls_back_to_mutable_live_bytes · function · L901-L924 — def test_legacy_version_without_snapshot_never_falls_back_to_mutable_live_bytes( tmp_path, )
- test_parquet_table_reads_the_exact_version_snapshot · function · L927-L955 — def test_parquet_table_reads_the_exact_version_snapshot(tmp_path, monkeypatch)
- fake_read · function · L947-L949 — def fake_read(path)
- test_malformed_mol_counts_are_a_stable_invalid_structure_400 · function · L958-L986 — def test_malformed_mol_counts_are_a_stable_invalid_structure_400(tmp_path)
- test_structure_snapshot_failure_leaves_live_head_and_versions_unchanged · function · L989-L1026 — def test_structure_snapshot_failure_leaves_live_head_and_versions_unchanged( tmp_path, monkeypatch )
- fail_snapshot · function · L1009-L1010 — def fail_snapshot(_filename, _data)
- test_nested_structure_save_preserves_identity_filename_and_snapshot · function · L1029-L1058 — def test_nested_structure_save_preserves_identity_filename_and_snapshot(tmp_path)
- test_nested_structure_db_failure_restores_live_snapshot_and_head · function · L1061-L1102 — def test_nested_structure_db_failure_restores_live_snapshot_and_head( tmp_path, monkeypatch )
- fail_after_publish · function · L1081-L1083 — def fail_after_publish(**kwargs)