32f384c59f562061d0f506f3d5c3647420e1054f,api/python/tests/integration/test_packages.py,PackageTest,test_local_install,#PackageTest#,210

Before Change



    def test_local_install(self):
        Verify that installing from a local package works as expected.
        with patch("quilt3.packages.get_from_config") as get_config_mock, \
            patch("quilt3.Package.push") as push_mock:
            local_registry = "."
            get_config_mock.return_value = local_registry
            pkg = Package()
            pkg.build("Quilt/nice-name")

            quilt3.Package.install("Quilt/nice-name", registry="local", dest="./")
            push_mock.assert_called_once_with(dest="./", name="Quilt/nice-name", registry=local_registry)

    def test_remote_install(self):
        Verify that installing from a local package works as expected.
        with patch("quilt3.packages.get_from_config") as get_config_mock, \
            patch("quilt3.Package.push") as push_mock:

After Change



    def test_local_install(self):
        Verify that installing from a local package works as expected.
        local_registry = Path(".").resolve().as_uri()
        quilt3.config(default_local_registry=local_registry)
        with patch("quilt3.Package.push") as push_mock:
            pkg = Package()
            pkg.build("Quilt/nice-name")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: quiltdata/quilt
Commit Name: 32f384c59f562061d0f506f3d5c3647420e1054f
Time: 2019-06-03
Author: dima@quiltdata.io
File Name: api/python/tests/integration/test_packages.py
Class Name: PackageTest
Method Name: test_local_install


Project Name: pantsbuild/pants
Commit Name: f2a35263aacacf10e1b2d622cd39c7c66ea39acb
Time: 2019-11-25
Author: ericarellano@me.com
File Name: src/python/pants/fs/fs_test.py
Class Name: WorkspaceInConsoleRuleTest
Method Name: test


Project Name: quiltdata/quilt
Commit Name: 32f384c59f562061d0f506f3d5c3647420e1054f
Time: 2019-06-03
Author: dima@quiltdata.io
File Name: api/python/tests/integration/test_packages.py
Class Name: PackageTest
Method Name: test_remote_install