2b15199ad9dbcd4053a8ea213687f6720cff2307,contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py,NodeTaskTest,test_execute_npm,#NodeTaskTest#,103

Before Change


      with open(os.path.join(chroot, "package.json"), "wb") as fp:
        json.dump(package, fp)
      with pushd(chroot):
        returncode, _ = task.execute_npm(["run-script", "proof"], workunit_name="test")

      self.assertEqual(0, returncode)
      self.assertTrue(os.path.exists(proof))

After Change


      with pushd(chroot):
        returncode, _ = task.run_script(
          "proof",
          package_manager=task.node_distribution.get_package_manager(package_manager="npm"),
          workunit_name="test")

      self.assertEqual(0, returncode)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 2b15199ad9dbcd4053a8ea213687f6720cff2307
Time: 2018-04-23
Author: rogerj.2010@gmail.com
File Name: contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py
Class Name: NodeTaskTest
Method Name: test_execute_npm


Project Name: pantsbuild/pants
Commit Name: 2b15199ad9dbcd4053a8ea213687f6720cff2307
Time: 2018-04-23
Author: rogerj.2010@gmail.com
File Name: contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py
Class Name: NodeTaskTest
Method Name: test_execute_yarnpkg


Project Name: pantsbuild/pants
Commit Name: 2b15199ad9dbcd4053a8ea213687f6720cff2307
Time: 2018-04-23
Author: rogerj.2010@gmail.com
File Name: contrib/node/src/python/pants/contrib/node/tasks/node_repl.py
Class Name: NodeRepl
Method Name: launch_repl