Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 25, 2023
1 parent 401f9a2 commit e625ae8
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,20 +360,32 @@ def test_validate_strict_fails_strict_and_non_strict() -> None:
"'version' is a required property",
"'description' is a required property",
"'authors' is a required property",
'Cannot find dependency "missing_extra" for extra "some-extras" in '
"main dependencies.",
'Cannot find dependency "another_missing_extra" for extra '
'"some-extras" in main dependencies.',
'Script "a_script_with_unknown_extra" requires extra "foo" which is not'
" defined.",
"Declared README files must be of same type: found text/markdown,"
" text/x-rst",
(
'Cannot find dependency "missing_extra" for extra "some-extras" in '
"main dependencies."
),
(
'Cannot find dependency "another_missing_extra" for extra '
'"some-extras" in main dependencies.'
),
(
'Script "a_script_with_unknown_extra" requires extra "foo" which is not'
" defined."
),
(
"Declared README files must be of same type: found text/markdown,"
" text/x-rst"
),
],
"warnings": [
"A wildcard Python dependency is ambiguous. Consider specifying a more"
" explicit one.",
'The "pathlib2" dependency specifies the "allows-prereleases" property,'
' which is deprecated. Use "allow-prereleases" instead.',
(
"A wildcard Python dependency is ambiguous. Consider specifying a more"
" explicit one."
),
(
'The "pathlib2" dependency specifies the "allows-prereleases" property,'
' which is deprecated. Use "allow-prereleases" instead.'
),
],
}

Expand Down Expand Up @@ -513,8 +525,10 @@ def test_create_poetry_with_markers_and_extras() -> None:
"markers": 'platform_machine == "x86_64"',
},
"~3.7",
'platform_machine == "x86_64" and python_version == "3.7" and'
' sys_platform == "linux"',
(
'platform_machine == "x86_64" and python_version == "3.7" and'
' sys_platform == "linux"'
),
),
(
{"python": ">=3.7", "markers": 'python_version < "4.0"'},
Expand Down

0 comments on commit e625ae8

Please sign in to comment.