antimatter.tests.test_capsule#

Module Contents#

Functions#

mock_capsule_bindings(monkeypatch, capsule_tags, ...)

test_data_with_tags(mock_capsule_bindings)

test_markup_bytes(input_bytes, span_tags, expected_output)

test_capsule_data_no_extra_info(col_names, data, ...)

test_rep_str(data, expected_repr, expected_str)

Attributes#

antimatter.tests.test_capsule.mock_capsule_bindings(monkeypatch, capsule_tags, column_names, column_tags, redacted_data, data_span_tags, extra_info)#
antimatter.tests.test_capsule.test_data_with_tags(mock_capsule_bindings)#
antimatter.tests.test_capsule.test_data = [(b'the {redacted} {redacted}', None, b"the <span tags=['foo']>{redacted}</span> <span...#
antimatter.tests.test_capsule.test_ids = ['Basic non-overlapping', 'Exact overlap example 1', 'Overlap with start and end',...#
antimatter.tests.test_capsule.test_markup_bytes(input_bytes, span_tags, expected_output)#
antimatter.tests.test_capsule.test_capsule_data_no_extra_info(col_names, data, expected_output)#
antimatter.tests.test_capsule.test_rep_str(data, expected_repr, expected_str)#