Skip to content

Commit 15565fe

Browse files
committed
fix tests
1 parent 16308d0 commit 15565fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

python/private/py_console_script_gen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545

4646
_TEMPLATE = """\
4747
{shebang}
48-
4948
import sys
5049
5150
# See @rules_python//python/private:py_console_script_gen.py for explanation

tests/entry_points/py_console_script_gen_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def test_no_console_scripts_error(self):
4747
out=outfile,
4848
console_script=None,
4949
console_script_guess="",
50+
shebang="",
5051
)
5152

5253
self.assertEqual(
@@ -76,6 +77,7 @@ def test_no_entry_point_selected_error(self):
7677
out=outfile,
7778
console_script=None,
7879
console_script_guess="bar-baz",
80+
shebang="",
7981
)
8082

8183
self.assertEqual(
@@ -106,6 +108,7 @@ def test_incorrect_entry_point(self):
106108
out=outfile,
107109
console_script="baz",
108110
console_script_guess="",
111+
shebang="",
109112
)
110113

111114
self.assertEqual(
@@ -134,12 +137,14 @@ def test_a_single_entry_point(self):
134137
out=out,
135138
console_script=None,
136139
console_script_guess="foo",
140+
shebang="",
137141
)
138142

139143
got = out.read_text()
140144

141145
want = textwrap.dedent(
142146
"""\
147+
143148
import sys
144149
145150
# See @rules_python//python/private:py_console_script_gen.py for explanation
@@ -185,6 +190,7 @@ def test_a_second_entry_point_class_method(self):
185190
out=out,
186191
console_script="bar",
187192
console_script_guess="",
193+
shebang="",
188194
)
189195

190196
got = out.read_text()

0 commit comments

Comments
 (0)