Skip to content

Commit 95c6207

Browse files
committed
more fix for windows
1 parent 5e5194e commit 95c6207

File tree

1 file changed

+13
-26
lines changed

1 file changed

+13
-26
lines changed

tests/test_utils.py

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def test_get_git_url_no_remote(self) -> None:
116116

117117
def test_get_git_version(self) -> None:
118118
git_version = self.git_info.get_git_version()
119-
self.assertEqual(len(git_version), 3)
120119
self.assertIsInstance(git_version, tuple)
121120
for v in git_version:
122121
self.assertIsInstance(v, int)
@@ -245,9 +244,7 @@ class TypedVariable:
245244

246245
def test_separated_variables(self):
247246
class SeparatedVariable:
248-
"""Comment
249-
250-
"""
247+
"""Comment"""
251248

252249
arg_1: str
253250

@@ -263,9 +260,7 @@ def func(self):
263260

264261
def test_commented_variables(self):
265262
class CommentedVariable:
266-
"""Comment
267-
268-
"""
263+
"""Comment"""
269264

270265
arg_1: str # Arg 1 comment
271266

@@ -286,10 +281,10 @@ def func(self):
286281

287282
def test_bad_spacing_multiline(self):
288283
class TrickyMultiline:
289-
""" This is really difficult
284+
"""This is really difficult
290285
291-
so
292-
so very difficult
286+
so
287+
so very difficult
293288
"""
294289

295290
foo: str = "my" # Header line
@@ -322,36 +317,28 @@ class TripleQuoteMultiline:
322317
def test_comments_with_quotes(self):
323318
class MultiquoteMultiline:
324319
bar: int = 0
325-
'\'\'biz baz\''
320+
"''biz baz'"
326321

327322
hi: str
328-
"\"Hello there\"\""
323+
'"Hello there""'
329324

330325
class_variables = {}
331-
class_variables['bar'] = {'comment': "''biz baz'"}
332-
class_variables['hi'] = {'comment': '"Hello there""'}
326+
class_variables["bar"] = {"comment": "''biz baz'"}
327+
class_variables["hi"] = {"comment": '"Hello there""'}
333328
self.assertEqual(get_class_variables(MultiquoteMultiline), class_variables)
334329

335330
def test_multiline_argument(self):
336331
class MultilineArgument:
337-
bar: str = (
338-
"This is a multiline argument"
339-
" that should not be included in the docstring"
340-
)
332+
bar: str = "This is a multiline argument" " that should not be included in the docstring"
341333
"""biz baz"""
342334

343335
class_variables = {"bar": {"comment": "biz baz"}}
344336
self.assertEqual(get_class_variables(MultilineArgument), class_variables)
345337

346338
def test_multiline_argument_with_final_hashtag_comment(self):
347339
class MultilineArgumentWithHashTagComment:
348-
bar: str = (
349-
"This is a multiline argument"
350-
" that should not be included in the docstring"
351-
) # biz baz
352-
barr: str = (
353-
"This is a multiline argument"
354-
" that should not be included in the docstring") # bar baz
340+
bar: str = "This is a multiline argument" " that should not be included in the docstring" # biz baz
341+
barr: str = "This is a multiline argument" " that should not be included in the docstring" # bar baz
355342
barrr: str = ( # meow
356343
"This is a multiline argument" # blah
357344
" that should not be included in the docstring" # grrrr
@@ -563,7 +550,7 @@ def test_python_object_encoder_complex(self):
563550

564551
def test_python_object_encoder_unpicklable(self):
565552
class CannotPickleThis:
566-
"""Da na na na. Can't pickle this. """
553+
"""Da na na na. Can't pickle this."""
567554

568555
def __init__(self):
569556
self.x = 1

0 commit comments

Comments
 (0)