Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
raydouglass committed Nov 21, 2024
1 parent f8a9351 commit d9f9873
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,33 @@ def set_cwd(cwd: os.PathLike) -> Generator:
@pytest.mark.parametrize(
["unencoded", "encoded"],
[
(RAPIDSPackage(), {"publishes_prereleases": True, "has_cuda_suffix": True, "has_conda_package": True, "has_wheel_package": True}),
(RAPIDSPackage(has_conda_package=False), {"publishes_prereleases": True, "has_cuda_suffix": True, "has_conda_package": False, "has_wheel_package": True}),
(RAPIDSPackage(has_wheel_package=False), {"publishes_prereleases": True, "has_cuda_suffix": True, "has_conda_package": True, "has_wheel_package": False}),
(
RAPIDSPackage(),
{
"publishes_prereleases": True,
"has_cuda_suffix": True,
"has_conda_package": True,
"has_wheel_package": True,
},
),
(
RAPIDSPackage(has_conda_package=False),
{
"publishes_prereleases": True,
"has_cuda_suffix": True,
"has_conda_package": False,
"has_wheel_package": True,
},
),
(
RAPIDSPackage(has_wheel_package=False),
{
"publishes_prereleases": True,
"has_cuda_suffix": True,
"has_conda_package": True,
"has_wheel_package": False,
},
),
(
RAPIDSRepository(
packages={
Expand All @@ -61,13 +85,13 @@ def set_cwd(cwd: os.PathLike) -> Generator:
"publishes_prereleases": True,
"has_cuda_suffix": True,
"has_conda_package": True,
"has_wheel_package": True
"has_wheel_package": True,
},
"package2": {
"publishes_prereleases": False,
"has_cuda_suffix": False,
"has_conda_package": True,
"has_wheel_package": True
"has_wheel_package": True,
},
},
},
Expand Down Expand Up @@ -99,7 +123,7 @@ def set_cwd(cwd: os.PathLike) -> Generator:
"publishes_prereleases": True,
"has_cuda_suffix": True,
"has_conda_package": True,
"has_wheel_package": True
"has_wheel_package": True,
},
},
},
Expand All @@ -109,7 +133,7 @@ def set_cwd(cwd: os.PathLike) -> Generator:
"publishes_prereleases": True,
"has_cuda_suffix": True,
"has_conda_package": True,
"has_wheel_package": True
"has_wheel_package": True,
},
},
},
Expand Down

0 comments on commit d9f9873

Please sign in to comment.