Skip to content

Commit

Permalink
[pre-commit.ci] Apply automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 2, 2023
1 parent ba53843 commit 6532f6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/tests_unit/test_cli_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def test_cli_upgrade_to_2023_10_1_kubernetes_validations(
kubernetes_version: {kubernetes_configs[provider][k8s_status]}
"""
)

if provider == "gcp":
nebari_config["google_cloud_platform"]["project"] = "test-project"

Expand Down
8 changes: 6 additions & 2 deletions tests/tests_unit/test_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ def test_render_config(nebari_render):
"03-kubernetes-initialize",
}.issubset(os.listdir(output_directory / "stages"))

assert (output_directory / "stages" / f"01-terraform-state/{config.provider}").is_dir()
assert (output_directory / "stages" / f"02-infrastructure/{config.provider}").is_dir()
assert (
output_directory / "stages" / f"01-terraform-state/{config.provider}"
).is_dir()
assert (
output_directory / "stages" / f"02-infrastructure/{config.provider}"
).is_dir()

if config.ci_cd.type == CiEnum.github_actions:
assert (output_directory / ".github/workflows/").is_dir()
Expand Down
5 changes: 4 additions & 1 deletion tests/tests_unit/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,8 @@ def test_unsupported_kubernetes_version(config_schema):
"kubernetes_version": f"{unsupported_version}",
},
}
with pytest.raises(ValidationError, match=rf"Invalid `kubernetes-version` provided: {unsupported_version}..*"):
with pytest.raises(
ValidationError,
match=rf"Invalid `kubernetes-version` provided: {unsupported_version}..*",
):
config_schema(**config_dict)

0 comments on commit 6532f6a

Please sign in to comment.