88from pathlib import Path
99
1010from scripts .sync_consumer import (
11+ LOCK_HEADER ,
1112 load_consumers ,
1213 matrix ,
1314 parse_lock ,
@@ -113,9 +114,7 @@ def test_updates_when_target_matches_lock(self) -> None:
113114 lock = self .lock_path (root )
114115 lock .parent .mkdir (parents = True , exist_ok = True )
115116 lock .write_text (
116- "# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors\n "
117- "# SPDX-License-Identifier: MIT\n \n "
118- f"{ old_hash } reuse.yml\n " ,
117+ LOCK_HEADER + "\n " + f"{ old_hash } reuse.yml\n " ,
119118 encoding = "utf-8" ,
120119 )
121120
@@ -142,9 +141,7 @@ def test_refuses_local_divergence(self) -> None:
142141 lock = self .lock_path (root )
143142 lock .parent .mkdir (parents = True , exist_ok = True )
144143 lock .write_text (
145- "# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors\n "
146- "# SPDX-License-Identifier: MIT\n \n "
147- f"{ old_hash } reuse.yml\n " ,
144+ LOCK_HEADER + "\n " + f"{ old_hash } reuse.yml\n " ,
148145 encoding = "utf-8" ,
149146 )
150147
@@ -171,9 +168,7 @@ def test_reports_unchanged(self) -> None:
171168 lock = self .lock_path (root )
172169 lock .parent .mkdir (parents = True , exist_ok = True )
173170 lock .write_text (
174- "# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors\n "
175- "# SPDX-License-Identifier: MIT\n \n "
176- f"{ digest } reuse.yml\n " ,
171+ LOCK_HEADER + "\n " + f"{ digest } reuse.yml\n " ,
177172 encoding = "utf-8" ,
178173 )
179174
0 commit comments