mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Start replacing Script calls with a fixture
This is important to migrate all tests to specific fixtures.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import tempfile
|
||||
import shutil
|
||||
import os
|
||||
from functools import partial
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -95,6 +96,11 @@ def environment(request):
|
||||
return get_python_environment('python%s.%s' % tuple(version))
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def Script(environment):
|
||||
return partial(jedi.Script, environment=environment)
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def has_typing(environment):
|
||||
if environment.version_info >= (3, 5, 0):
|
||||
|
||||
Reference in New Issue
Block a user