aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Aiuto <aiuto@google.com>2023-02-07 12:49:50 -0500
committerTony Aiuto <aiuto@google.com>2023-02-07 12:49:50 -0500
commit3a9a508a841dea22a0a33f0fea84a55a1c21d56f (patch)
tree093546cc852f9a312da58cc4cd56074847dad127
parentd87630d1e51e91f2df3b4f95fdef6cd97f12e3de (diff)
downloadbazelbuild-rules_license-3a9a508a841dea22a0a33f0fea84a55a1c21d56f.tar.gz
remove unused code
-rw-r--r--examples/vendor/constant_gen/verify_licenses_test.py2
-rw-r--r--tests/hello_licenses_test.py5
2 files changed, 0 insertions, 7 deletions
diff --git a/examples/vendor/constant_gen/verify_licenses_test.py b/examples/vendor/constant_gen/verify_licenses_test.py
index a3eb847..4fddef8 100644
--- a/examples/vendor/constant_gen/verify_licenses_test.py
+++ b/examples/vendor/constant_gen/verify_licenses_test.py
@@ -9,7 +9,6 @@ from tests import license_test_utils
class VerifyLicensesTest(unittest.TestCase):
def test_generater_license(self):
- package_base = license_test_utils.LICENSE_PACKAGE_BASE
licenses_info = license_test_utils.load_licenses_info(
os.path.join(os.path.dirname(__file__), "generator_licenses.json"))
@@ -22,7 +21,6 @@ class VerifyLicensesTest(unittest.TestCase):
self, licenses_info, expected)
def test_generated_code_license(self):
- package_base = license_test_utils.LICENSE_PACKAGE_BASE
licenses_info = license_test_utils.load_licenses_info(
os.path.join(os.path.dirname(__file__), "generated_code_licenses.json"))
diff --git a/tests/hello_licenses_test.py b/tests/hello_licenses_test.py
index adfe92b..de62c7f 100644
--- a/tests/hello_licenses_test.py
+++ b/tests/hello_licenses_test.py
@@ -10,13 +10,8 @@ from tests import license_test_utils
class HelloLicensesTest(unittest.TestCase):
def test_has_expected_licenses(self):
- package_base = license_test_utils.LICENSE_PACKAGE_BASE
licenses_info = license_test_utils.load_licenses_info(
os.path.join(os.path.dirname(__file__), "hello_licenses.json"))
- licenses_info = license_test_utils.filter_dependencies(
- licenses_info,
- target_filter=lambda targ: targ.startswith(package_base),
- licenses_filter=lambda lic: lic.startswith(package_base))
expected = {
"/tests:hello": [