Skip to content

Commit

Permalink
set installer.parallel to false for reproducible output
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Oct 12, 2024
1 parent 15b5672 commit 985d554
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/console/commands/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from pytest_mock import MockerFixture
from tomlkit import TOMLDocument

from poetry.config.config import Config
from poetry.poetry import Poetry
from poetry.utils.env import MockEnv
from poetry.utils.env import VirtualEnv
Expand All @@ -37,6 +38,13 @@
from tests.types import ProjectFactory


@pytest.fixture(autouse=True)
def config(config: Config) -> Config:
# Disable parallel installs to get reproducible output.
config.merge({"installer": {"parallel": False}})
return config


@pytest.fixture
def poetry_with_up_to_date_lockfile(
project_factory: ProjectFactory, fixture_dir: FixtureDirGetter
Expand Down

0 comments on commit 985d554

Please sign in to comment.