e5c62b49200a6adef9f9c92469b866161f999046,lambdas/pkgselect/test/test_pkgselect.py,TestPackageSelect,test_browse_subsubfolder,#TestPackageSelect#,190

Before Change


        assert isinstance(df, pd.DataFrame)
        filtered_df = df[df["logical_key"].str.startswith(prefix)]
        stripped = filtered_df["logical_key"].str.slice(start=len(prefix))
        folder = file_list_to_folder(stripped.to_frame("logical_key"))
        assert "objects" in folder
        assert "prefixes" in folder
        assert not folder["prefixes"]

After Change


        assert isinstance(df, pd.DataFrame)
        filtered_df = df[df["logical_key"].str.startswith(prefix)]
        stripped = filtered_df["logical_key"].str.slice(start=len(prefix))
        stripped_df = stripped.to_frame("logical_key")
        s3_df = pd.concat(
            [stripped_df["logical_key"], filtered_df["size"], filtered_df["physical_key"]],
            axis=1,
            keys=["logical_key", "size", "physical_key"]
        )
        folder = file_list_to_folder(s3_df)
        assert "objects" in folder
        assert "prefixes" in folder
        assert not folder["prefixes"]
        assert len(folder["objects"]) == 2
        object_keys = [obj["logical_key"] for obj in folder["objects"]]
        assert "file3.txt" in object_keys
        assert "file4.txt" in object_keys

    def test_folder_view(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: quiltdata/quilt
Commit Name: e5c62b49200a6adef9f9c92469b866161f999046
Time: 2020-09-23
Author: kevinemoore@gmail.com
File Name: lambdas/pkgselect/test/test_pkgselect.py
Class Name: TestPackageSelect
Method Name: test_browse_subsubfolder


Project Name: quiltdata/quilt
Commit Name: e5c62b49200a6adef9f9c92469b866161f999046
Time: 2020-09-23
Author: kevinemoore@gmail.com
File Name: lambdas/pkgselect/test/test_pkgselect.py
Class Name: TestPackageSelect
Method Name: test_browse_subfolder


Project Name: sassoftware/python-dlpy
Commit Name: 6b4fac6310432e138dea049ee8b606dca5c61d50
Time: 2019-03-09
Author: rui.li@sas.com
File Name: dlpy/tests/test_metrics.py
Class Name: TestMetrics
Method Name: test_roc_auc_score