6af8bc8142ec5575947b8f87dccdf629bc4c45b7,tests/python/pants_test/backend/python/test_python_requirement_list.py,PythonRequirementListTest,test_bad_list,#PythonRequirementListTest#,21

Before Change


        )

    def test_bad_list(self):
        self.add_to_build_file(
            "lib",
            dedent(
                
                python_requirement_library(
                  name="pyunit",
                  requirements=[
                    "argparse==1.2.1"
                  ]
                )
                
            ),
        )
        with self.assertRaises(TargetDefinitionException):
            self.target("lib:pyunit")

    def test_good_list(self):

After Change


        return target[PythonRequirementsField].value

    def test_bad_list(self) -> None:
        build_file = dedent(
            
            python_requirement_library(
              name="pyunit",
              requirements=[
                "argparse==1.2.1"
              ]
            )
            
        )
        with pytest.raises(ExecutionError):
            self.get_python_requirements(build_file, target_name="pyunit")

    def test_good_list(self) -> None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 6af8bc8142ec5575947b8f87dccdf629bc4c45b7
Time: 2020-07-02
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: tests/python/pants_test/backend/python/test_python_requirement_list.py
Class Name: PythonRequirementListTest
Method Name: test_bad_list


Project Name: pantsbuild/pants
Commit Name: 6db9355ebc77853f02bc6aded82151375d113f9c
Time: 2021-03-30
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/goals/package_pex_binary_integration_test.py
Class Name:
Method Name: test_warn_files_targets


Project Name: pantsbuild/pants
Commit Name: 6af8bc8142ec5575947b8f87dccdf629bc4c45b7
Time: 2020-07-02
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: tests/python/pants_test/backend/python/test_python_requirement_list.py
Class Name: PythonRequirementListTest
Method Name: test_good_list