Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/utils/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from poetry.utils.helpers import ensure_path
from poetry.utils.helpers import get_file_hash
from poetry.utils.helpers import get_highest_priority_hash_type
from poetry.utils.helpers import pluralize


if TYPE_CHECKING:
Expand All @@ -28,6 +29,14 @@
from tests.types import FixtureDirGetter


def test_pluralize() -> None:
assert pluralize(1, "apple") == "apple"
assert pluralize(0, "apple") == "apples"
assert pluralize(2, "apple") == "apples"
assert pluralize(3, "") == "s"



def test_parse_requires() -> None:
requires = """\
jsonschema>=2.6.0.0,<3.0.0.0
Expand Down
Loading