@@ -37,7 +37,7 @@ def test_nightly_runs_full_package_and_publication_path(self) -> None:
3737 self .assertIn ("nightly: true" , content )
3838 self .assertIn ("printf 'Automated nightly build from `%s`.\\ n'" , content )
3939 self .assertIn ("printf 'Generated from commit `%s`.\\ n'" , content )
40- self .assertNotIn ("from `%s`.\\ \\ \\ \\ n" , content )
40+ self .assertNotIn ("from `%s`.\\ \\ \\ n" , content )
4141
4242 def test_server_is_available_before_makefile_packaging (self ) -> None :
4343 content = TEMPLATE .read_text (encoding = "utf-8" )
@@ -52,7 +52,7 @@ def test_server_is_available_before_makefile_packaging(self) -> None:
5252 def test_release_notes_do_not_emit_literal_newline_escapes (self ) -> None :
5353 content = TEMPLATE .read_text (encoding = "utf-8" )
5454
55- self .assertNotIn (".\\ \\ \\ \\ n'" , content )
55+ self .assertNotIn (".\\ \\ \\ n'" , content )
5656
5757 def test_release_notes_use_shared_pull_request_action (self ) -> None :
5858 content = TEMPLATE .read_text (encoding = "utf-8" )
@@ -62,40 +62,26 @@ def test_release_notes_use_shared_pull_request_action(self) -> None:
6262 f"actions/release-notes-from-pull-requests@{ sha } " ,
6363 content ,
6464 )
65- self .assertIn ("from-ref: ${{ steps.release-note-range.outputs.from-ref }}" , content )
66- self .assertIn ("branch: ${{ steps.nightly.outputs.branch }}" , content )
65+ self .assertIn (
66+ "from-ref: ${{ steps.release-note-range.outputs.from-ref }}" ,
67+ content ,
68+ )
69+ self .assertIn (
70+ "branch: ${{ steps.nightly.outputs.branch }}" ,
71+ content ,
72+ )
6773 self .assertIn (
6874 "CHANGES_FILE: ${{ steps.release-note-changes.outputs.changes-file }}" ,
6975 content ,
7076 )
7177 self .assertNotIn ("declare -A seen_prs" , content )
72- self .assertNotIn ('commits/${sha}/pulls' , content )
7378 self .assertNotIn ("unique_by(.number)" , content )
7479
7580 def test_release_note_range_step_is_not_corrupted (self ) -> None :
7681 content = TEMPLATE .read_text (encoding = "utf-8" )
7782
7883 self .assertIn (
79- "grep - v '^ nightly
80- content = TEMPLATE .read_text (encoding = "utf-8" )
81-
82- self .assertNotIn ("persist-credentials: true" , content )
83- self .assertIn ("permissions:\n contents: write\n pull-requests: read" , content )
84- self .assertNotIn ("actions: write" , content )
85-
86- def test_concurrency_only_cancels_runs_for_the_same_branch (self ) - > None :
87- content = TEMPLATE .read_text (encoding = "utf-8" )
88-
89- self .assertIn (
90- "group: nightly-release-${{ github.repository }}-${{ github.ref_name }}" ,
91- content ,
92- )
93- self .assertIn ("cancel-in-progress: true" , content )
94-
95-
96- if __name__ == "__main__" :
97- unittest .main ()
98- | head - 1 | | true )",
84+ "grep -v '^nightly$' | head -1 || true)" ,
9985 content ,
10086 )
10187 self .assertEqual (
0 commit comments