"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/utils/test_patterns.py" between
poetry-1.1.15.tar.gz and poetry-1.2.0.tar.gz

About: Poetry is a tool for dependency management and packaging in Python.

test_patterns.py  (poetry-1.1.15):test_patterns.py  (poetry-1.2.0)
from __future__ import annotations
import pytest import pytest
from poetry.utils import patterns from poetry.utils import patterns
@pytest.mark.parametrize( @pytest.mark.parametrize(
["filename", "expected"], ["filename", "expected"],
[ [
( (
"markdown_captions-2-py3-none-any.whl", "markdown_captions-2-py3-none-any.whl",
{ {
skipping to change at line 34 skipping to change at line 36
"name": "SQLAlchemy", "name": "SQLAlchemy",
"ver": "1.3.20", "ver": "1.3.20",
"build": None, "build": None,
"pyver": "cp27", "pyver": "cp27",
"abi": "cp27mu", "abi": "cp27mu",
"plat": "manylinux2010_x86_64", "plat": "manylinux2010_x86_64",
}, },
), ),
], ],
) )
def test_wheel_file_re(filename, expected): def test_wheel_file_re(filename: str, expected: dict[str, str | None]):
match = patterns.wheel_file_re.match(filename) match = patterns.wheel_file_re.match(filename)
groups = match.groupdict() groups = match.groupdict()
assert groups == expected assert groups == expected
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)