From b7687fcfb7a8383cac9dea67296fcfb27301b77d Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 10 Jul 2019 23:23:18 -0700 Subject: [PATCH] Cleanup a test file --- test/test_api/test_classes.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/test/test_api/test_classes.py b/test/test_api/test_classes.py index 0a44f635..b3f893ad 100644 --- a/test/test_api/test_classes.py +++ b/test/test_api/test_classes.py @@ -8,13 +8,10 @@ import pytest import jedi from jedi import __doc__ as jedi_doc, names -from ..helpers import TestCase from jedi.evaluate.compiled import CompiledContextName def test_is_keyword(Script): - #results = Script('import ', 1, 1, None).goto_definitions() - #assert len(results) == 1 and results[0].is_keyword is True results = Script('str', 1, 1, None).goto_definitions() assert len(results) == 1 and results[0].is_keyword is False @@ -140,28 +137,32 @@ def test_completion_docstring(Script, jedi_path): docstr('abcd=3;abcd', '') docstr('"hello"\nabcd=3\nabcd', '') - docstr(dedent(''' + docstr( + dedent(''' def x(): "hello" 0 x'''), 'hello' ) - docstr(dedent(''' + docstr( + dedent(''' def x(): "hello";0 x'''), 'hello' ) # Shouldn't work with a tuple. - docstr(dedent(''' + docstr( + dedent(''' def x(): "hello",0 x'''), '' ) # Should also not work if we rename something. - docstr(dedent(''' + docstr( + dedent(''' def x(): "hello" y = x