mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
20 lines
387 B
Python
20 lines
387 B
Python
import pytest
|
|
from textwrap import dedent
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def skip_not_supported(environment):
|
|
if environment.version_info < (3, 6):
|
|
pytest.skip()
|
|
|
|
|
|
def test_fstring_multiline(Script):
|
|
code = dedent("""\
|
|
'' f'''s{
|
|
str.uppe
|
|
'''
|
|
"""
|
|
)
|
|
c, = Script(code, line=2, column=9).completions()
|
|
assert c.name == 'upper'
|