3a78a1b7b5d7839e9203688d6c508a62b183526e,api/python/tests/integration/test_packages.py,PackageTest,test_list_remote_packages,#PackageTest#,707

Before Change


            else:
                raise ValueError

        with patch("quilt3.api.list_objects", side_effect=pseudo_list_objects), \
            patch("quilt3.api.get_bytes", side_effect=pseudo_get_bytes), \
            patch("quilt3.Package.browse", return_value=Package()):
            pkgs = quilt3.list_packages("s3://my_test_bucket/")

            assert len(pkgs) == 1
            assert list(pkgs) == ["foo/bar"]

            expected = (
                "PACKAGE                    \tTOP HASH    \tCREATED     \tSIZE        \t\n"
                "foo/bar:latest             \t100            \tnow            \t0 Bytes\t\n"
                "foo/bar                    \t90             \t30 seconds ago \t0 Bytes\t\n"
            )
            assert str(pkgs) == expected


    def test_validate_package_name(self):
        validate_package_name("a/b")
        validate_package_name("21312/bes")
        with pytest.raises(QuiltException):

After Change


                    }
                ]
            },
            expected_params={
                "Bucket": "my_test_bucket",
                "Prefix": ".quilt/named_packages/",
            }
        )

        pkgs = list(quilt3.list_packages("s3://my_test_bucket/"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: quiltdata/quilt
Commit Name: 3a78a1b7b5d7839e9203688d6c508a62b183526e
Time: 2019-10-09
Author: dima@quiltdata.io
File Name: api/python/tests/integration/test_packages.py
Class Name: PackageTest
Method Name: test_list_remote_packages


Project Name: home-assistant/home-assistant
Commit Name: fe8dec27a38cfeeb00129a555e1a4e850b1e4251
Time: 2018-10-23
Author: nicko@nicko.org
File Name: tests/components/emulated_hue/test_init.py
Class Name:
Method Name: test_config_google_home_entity_id_to_number_empty


Project Name: home-assistant/home-assistant
Commit Name: 50f0eac7f37c2339a56f77e12da443edae3bdf9c
Time: 2018-10-23
Author: nicko@nicko.org
File Name: tests/components/emulated_hue/test_init.py
Class Name:
Method Name: test_config_google_home_entity_id_to_number_empty


Project Name: snipsco/snips-nlu
Commit Name: 7bedc08a0e085fdb4f5bdabefad6ba56c811fc1a
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_intent_classifier_featurizer.py
Class Name: CooccurrenceVectorizerTest
Method Name: test_transform