e56403fa74c3d82dcec934054d50a7415ef8edc1,pandas/tests/io/formats/style/test_tooltip.py,TestStylerTooltip,test_tooltip_render,#TestStylerTooltip#Any#,25

Before Change


    )
    def test_tooltip_render(self, ttips):
        // GH 21266
        df = DataFrame(data=[[0, 3], [1, 2]], columns=["A", "B"], index=["a", "b"])
        s = Styler(df, uuid_len=0).set_tooltips(ttips).render()

        // test tooltip table level class
        assert "//T__ .pd-t {\n  visibility: hidden;\n" in s

After Change


    // test "Min" tooltip added
    assert "//T__ //T__row0_col0:hover .pd-t {\n  visibility: visible;\n}" in result
    assert "//T__ //T__row0_col0 .pd-t::after {\n  content: "Min";\n}" in result
    assert "class="data row0 col0" >0<span class="pd-t"></span></td>" in result

    // test "Max" tooltip added
    assert "//T__ //T__row0_col2:hover .pd-t {\n  visibility: visible;\n}" in result
    assert "//T__ //T__row0_col2 .pd-t::after {\n  content: "Max";\n}" in result
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pandas-dev/pandas
Commit Name: e56403fa74c3d82dcec934054d50a7415ef8edc1
Time: 2021-03-23
Author: 24256554+attack68@users.noreply.github.com
File Name: pandas/tests/io/formats/style/test_tooltip.py
Class Name: TestStylerTooltip
Method Name: test_tooltip_render


Project Name: googledatalab/pydatalab
Commit Name: 04c749f7175fd3e180b1a27884e5a65622cc36be
Time: 2017-07-05
Author: brandondutra@google.com
File Name: solutionbox/code_free_ml/test_mltoolbox/test_training.py
Class Name: TestSpecialCharacters
Method Name: testCommaQuote


Project Name: Scitator/catalyst
Commit Name: 7f7c0a8f880062d28d3b8dae6d622273e9c37b6b
Time: 2019-04-25
Author: alex.gaziev@gmail.com
File Name: catalyst/utils/tests/test_data.py
Class Name:
Method Name: test_stratified_fold_split