mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Add identifiers to these test strings
This makes it easier to work out which one fails when pytest reports a failure. Mostly useful when introducing failing tests, which I'm about to do.
This commit is contained in:
@@ -267,6 +267,7 @@ def test_pow_signature(Script, environment):
|
||||
@pytest.mark.parametrize(
|
||||
'code, signature', [
|
||||
[dedent('''
|
||||
# identifier:A
|
||||
import functools
|
||||
def f(x):
|
||||
pass
|
||||
@@ -278,6 +279,7 @@ def test_pow_signature(Script, environment):
|
||||
|
||||
x(f)('''), 'f(x, /)'],
|
||||
[dedent('''
|
||||
# identifier:B
|
||||
import functools
|
||||
def f(x):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user