f6db0395707a25eec54d116f8f8155874251fde5,tests/python/pants_test/backend/jvm/tasks/test_binary_create.py,TestBinaryCreate,test_jvm_binaries_products,#TestBinaryCreate#,27
Before Change
return register_core().merge(register_jvm())
def test_jvm_binaries_products(self):
self.add_to_build_file("foo", dedent(
jvm_binary(
name="foo-binary",
source="Foo.java",
)
))
binary_target = self.target("//foo:foo-binary")
context = self.context(target_roots=[binary_target])
with self.add_data(context.products, "classes_by_target", binary_target, "Foo.class"):
After Change
classpath_products = self.ensure_classpath_products(context)
jar_artifact = self.create_artifact(org="org.example", name="foo", rev="1.0.0")
with open_zip(jar_artifact.pants_path, "w") as jar:
jar.writestr("foo/Foo.class", "")
classpath_products.add_jars_for_targets(targets=[binary_target],
conf="default",
resolved_jars=[jar_artifact])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pantsbuild/pants
Commit Name: f6db0395707a25eec54d116f8f8155874251fde5
Time: 2015-09-17
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_binary_create.py
Class Name: TestBinaryCreate
Method Name: test_jvm_binaries_products
Project Name: pantsbuild/pants
Commit Name: f7b260e965e277d62d2f54847671d06b1763fb21
Time: 2020-08-23
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/run_python_binary_integration_test.py
Class Name: RunPythonBinaryIntegrationTest
Method Name: test_sample_script
Project Name: streamlit/streamlit
Commit Name: d32ecf41fbcfd2b050cf14a76638a9e5b9e5345a
Time: 2019-10-08
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/credentials_test.py
Class Name: CredentialsClassTest
Method Name: test_Credentials_save