Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
fixed indents and spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
avats-dev committed Sep 1, 2020
1 parent fd1f2e8 commit da54252
Showing 1 changed file with 46 additions and 44 deletions.
90 changes: 46 additions & 44 deletions link_checker/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,49 +45,49 @@ def test_get_github_legalcode():


license_url_data = [
# 2 part URL
(
"by-nc-nd_2.0",
"https://creativecommons.org/licenses/by-nc-nd/2.0/legalcode",
"https://creativecommons.org/licenses/by-nc-nd/2.0/",
"https://creativecommons.org/licenses/by-nc-nd/2.0/rdf",
),
# 3 part URL
(
"by-nc-nd_4.0_cs",
"https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.cs",
"https://creativecommons.org/licenses/by-nc-nd/4.0/deed.cs",
"https://creativecommons.org/licenses/by-nc-nd/4.0/rdf",
),
# 4 part URL
(
"by-nc-nd_3.0_rs_sr-Latn",
"https://creativecommons.org/licenses/by-nc-nd/3.0/rs/"
"legalcode.sr-Latn",
"https://creativecommons.org/licenses/by-nc-nd/3.0/rs/",
"https://creativecommons.org/licenses/by-nc-nd/3.0/rs/rdf",
),
# Special case - samplingplus
(
"samplingplus_1.0",
"https://creativecommons.org/licenses/sampling+/1.0/legalcode",
"https://creativecommons.org/licenses/sampling+/1.0/",
"https://creativecommons.org/licenses/sampling+/1.0/rdf",
),
(
"samplingplus_1.0_br",
"https://creativecommons.org/licenses/sampling+/1.0/br/legalcode",
"https://creativecommons.org/licenses/sampling+/1.0/br/",
"https://creativecommons.org/licenses/sampling+/1.0/br/rdf",
),
# Special case - CC0
(
"zero_1.0",
"https://creativecommons.org/publicdomain/zero/1.0/legalcode",
"https://creativecommons.org/publicdomain/zero/1.0/",
"https://creativecommons.org/publicdomain/zero/1.0/rdf",
),
]
# 2 part URL
(
"by-nc-nd_2.0",
"https://creativecommons.org/licenses/by-nc-nd/2.0/legalcode",
"https://creativecommons.org/licenses/by-nc-nd/2.0/",
"https://creativecommons.org/licenses/by-nc-nd/2.0/rdf",
),
# 3 part URL
(
"by-nc-nd_4.0_cs",
"https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.cs",
"https://creativecommons.org/licenses/by-nc-nd/4.0/deed.cs",
"https://creativecommons.org/licenses/by-nc-nd/4.0/rdf",
),
# 4 part URL
(
"by-nc-nd_3.0_rs_sr-Latn",
"https://creativecommons.org/licenses/by-nc-nd/3.0/rs/"
"legalcode.sr-Latn",
"https://creativecommons.org/licenses/by-nc-nd/3.0/rs/",
"https://creativecommons.org/licenses/by-nc-nd/3.0/rs/rdf",
),
# Special case - samplingplus
(
"samplingplus_1.0",
"https://creativecommons.org/licenses/sampling+/1.0/legalcode",
"https://creativecommons.org/licenses/sampling+/1.0/",
"https://creativecommons.org/licenses/sampling+/1.0/rdf",
),
(
"samplingplus_1.0_br",
"https://creativecommons.org/licenses/sampling+/1.0/br/legalcode",
"https://creativecommons.org/licenses/sampling+/1.0/br/",
"https://creativecommons.org/licenses/sampling+/1.0/br/rdf",
),
# Special case - CC0
(
"zero_1.0",
"https://creativecommons.org/publicdomain/zero/1.0/legalcode",
"https://creativecommons.org/publicdomain/zero/1.0/",
"https://creativecommons.org/publicdomain/zero/1.0/rdf",
),
]

def id_generator(data):
id_list = []
Expand All @@ -96,7 +96,9 @@ def id_generator(data):
return id_list

@pytest.mark.parametrize(
"filename, result, deed_result, rdf_result", license_url_data, ids = id_generator(license_url_data)
"filename, result, deed_result, rdf_result",
license_url_data,
ids=id_generator(license_url_data)
)
def test_create_base_link(filename, result, deed_result, rdf_result):
args = link_checker.parse_argument([])
Expand Down

0 comments on commit da54252

Please sign in to comment.