79d358a10723d9a1c9cef7aed16ccc5a693f3f6c,tests/python/pants_test/backend/jvm/targets/test_jvm_binary.py,JvmBinaryTest,test_bad_source_declaration,#JvmBinaryTest#,97
Before Change
def test_bad_source_declaration(self):
with self.assertRaisesRegexp(TargetDefinitionException,
r"Invalid target JvmBinary.*foo.*source must be a single"):
self.make_target(":foo", JvmBinary, main="com.example.Foo", source=["foo.py"])
def test_bad_sources_declaration(self):
with self.assertRaisesRegexp(Target.IllegalArgument,
r"jvm_binary only supports a single "source" argument"):
After Change
self.assertEquals(Duplicate.FAIL, jar_rules.default_dup_action)
def test_bad_source_declaration(self):
self.add_to_build_file(
"",
"jvm_binary(name = "foo", main = "com.example.Foo", source = ["foo.py"])",
)
with self.assertRaisesRegexp(TargetDefinitionException,
r"Invalid target JvmBinary.*foo.*source must be a single"):
self.target(":foo")
def test_bad_sources_declaration(self):
self.add_to_build_file(
"foo",
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances Project Name: pantsbuild/pants
Commit Name: 79d358a10723d9a1c9cef7aed16ccc5a693f3f6c
Time: 2018-06-11
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_binary.py
Class Name: JvmBinaryTest
Method Name: test_bad_source_declaration
Project Name: pantsbuild/pants
Commit Name: 2de82e5be2b80033ec910b60a9192242f19cc435
Time: 2018-09-18
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_prepare_services.py
Class Name: PrepareServicesTest
Method Name: test_prepare_resources
Project Name: pantsbuild/pants
Commit Name: 79d358a10723d9a1c9cef7aed16ccc5a693f3f6c
Time: 2018-06-11
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_binary.py
Class Name: JvmBinaryTest
Method Name: test_bad_main_declaration
Project Name: pantsbuild/pants
Commit Name: 79d358a10723d9a1c9cef7aed16ccc5a693f3f6c
Time: 2018-06-11
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_binary.py
Class Name: JvmBinaryTest
Method Name: test_bad_source_declaration
Project Name: pantsbuild/pants
Commit Name: 79d358a10723d9a1c9cef7aed16ccc5a693f3f6c
Time: 2018-06-11
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/targets/test_jvm_binary.py
Class Name: JvmBinaryTest
Method Name: test_bad_sources_declaration
Project Name: pantsbuild/pants
Commit Name: 2de82e5be2b80033ec910b60a9192242f19cc435
Time: 2018-09-18
Author: dawagner@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_classmap.py
Class Name: ClassmapTaskTest
Method Name: setUp