Skip to content

Commit

Permalink
test: long Python package prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Oct 27, 2021
1 parent c5ae451 commit 04e51f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_style.py
Expand Up @@ -842,6 +842,8 @@ def test_parsing_github_urls(original_url, expected_url, git_reference, raw_git_
[
("py://nitpick/styles/nitpick-style.toml", "nitpick.styles", "nitpick-style.toml"),
("py://some_package/nitpick.toml", "some_package", "nitpick.toml"),
("pypackage://nitpick/styles/nitpick-style.toml", "nitpick.styles", "nitpick-style.toml"),
("pypackage://some_package/nitpick.toml", "some_package", "nitpick.toml"),
],
)
def test_parsing_python_package_urls(original_url, import_path, resource_name):
Expand All @@ -856,6 +858,11 @@ def test_parsing_python_package_urls(original_url, import_path, resource_name):
[
("py://tests/resources/empty-style.toml", "tests/resources/empty-style.toml"),
("py://tests/resources/nested_package/empty_style.toml", "tests/resources/nested_package/empty_style.toml"),
("pypackage://tests/resources/empty-style.toml", "tests/resources/empty-style.toml"),
(
"pypackage://tests/resources/nested_package/empty_style.toml",
"tests/resources/nested_package/empty_style.toml",
),
],
)
def test_raw_content_url_of_python_package(original_url, expected_content_path_suffix):
Expand Down

0 comments on commit 04e51f4

Please sign in to comment.