mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[python] PY-84734 update bundled virtualenv to 20.38.0
(cherry picked from commit e7d3847d7900bf9b39477b6f063a6bcc94e3a6fd) IJ-MR-192441 GitOrigin-RevId: d42138440fff6c84344fbade8b92f8647b69810e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
78d99b88dd
commit
2f7eee6ad8
Binary file not shown.
18
python/helpersTests/tests/conftest.py
Normal file
18
python/helpersTests/tests/conftest.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def community_python_root():
|
||||
yield Path(__file__).parent.parent.parent
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def helpers_root(community_python_root):
|
||||
yield community_python_root / "helpers"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def helpers_test_resources_root(community_python_root):
|
||||
yield community_python_root / "helpersTestResources"
|
||||
@@ -1,15 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
from behave import configuration
|
||||
|
||||
from pycharm.behave_runner import _BehaveRunner
|
||||
from pycharm.behave_runner import _register_null_formatter
|
||||
|
||||
|
||||
def test_scenarios_to_run():
|
||||
def test_scenarios_to_run(helpers_test_resources_root):
|
||||
my_config = configuration.Configuration()
|
||||
helpers_root = Path(__file__).parent.parent.parent.parent
|
||||
path = helpers_root / "helpersTestResources" / "behave_examples" / "feature_with_rules"
|
||||
path = helpers_test_resources_root / "behave_examples" / "feature_with_rules"
|
||||
my_config.paths = [str(path / "rule.feature")]
|
||||
base_dir = str(path)
|
||||
|
||||
|
||||
11
python/helpersTests/tests/test_virtualenv_py3.py
Normal file
11
python/helpersTests/tests/test_virtualenv_py3.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def test_virtualenv_py3_pyz_integrity(helpers_root):
|
||||
result = subprocess.run(
|
||||
[sys.executable, helpers_root / "virtualenv-py3.pyz", "--version"],
|
||||
capture_output=True, text=True
|
||||
)
|
||||
assert result.returncode == 0
|
||||
assert "virtualenv" in result.stdout
|
||||
Reference in New Issue
Block a user