mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 11:00:06 +08:00
19 lines
377 B
Python
19 lines
377 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).complete(line=2, column=9)
|
||
|
assert c.name == 'upper'
|