Skip to content

Commit 34cefeb

Browse files
committed
chore: Update tests
1 parent f62aee7 commit 34cefeb

3 files changed

Lines changed: 17 additions & 15 deletions

File tree

hermetic_build/library_generation/tests/owlbot/java_unit_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_deprecate_method(self):
173173
)
174174
os.chdir(cwd)
175175

176-
@mock.patch.object(java, 'CURRENT_YEAR', 2025)
176+
@mock.patch.object(java, "CURRENT_YEAR", 2025)
177177
def test_fix_proto_license(self):
178178
with tempfile.TemporaryDirectory() as tempdir:
179179
cwd = os.getcwd()

hermetic_build/library_generation/tests/resources/goldens/owlbot-golden.py

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
java.common_templates(monorepo=True, excludes=[
25-
".github/*",
26-
".kokoro/*",
27-
"samples/*",
28-
"CODE_OF_CONDUCT.md",
29-
"CONTRIBUTING.md",
30-
"LICENSE",
31-
"SECURITY.md",
32-
"java.header",
33-
"license-checks.xml",
34-
"renovate.json",
35-
".gitignore"
36-
])
24+
java.common_templates(
25+
monorepo=True,
26+
excludes=[
27+
".github/*",
28+
".kokoro/*",
29+
"samples/*",
30+
"CODE_OF_CONDUCT.md",
31+
"CONTRIBUTING.md",
32+
"LICENSE",
33+
"SECURITY.md",
34+
"java.header",
35+
"license-checks.xml",
36+
"renovate.json",
37+
".gitignore",
38+
],
39+
)

java-showcase/scripts/generate_showcase.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ trap cleanup ERR
88
readonly ROOT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../.."
99
pushd "${ROOT_DIR}"
1010
source "${ROOT_DIR}/java-showcase/scripts/showcase_utilities.sh"
11-
export TEST_CURRENT_YEAR=2025
1211

1312
cleanup() {
1413
if [[ -z "${api_def_dir}" ]]; then

0 commit comments

Comments
 (0)