Skip to content

Commit a3a0baf

Browse files
[pre-commit.ci] Apply automatic pre-commit fixes
1 parent 1dfc35e commit a3a0baf

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

tests/tests_integration/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def disable_warnings():
3232
def _nebari_config(config_path):
3333
"""Reads the Nebari configuration file from the specified path."""
3434
from nebari.plugins import nebari_plugin_manager
35+
3536
config_schema = nebari_plugin_manager.config_schema
3637
return read_configuration(config_path, config_schema)
3738

@@ -53,10 +54,9 @@ def nebari_endpoint(deployment_dir):
5354

5455
@pytest.fixture(scope="session")
5556
def deployment_dir(request) -> Path:
56-
"""Ensures the deployment directory and config file exists
57+
"""Ensures the deployment directory and config file exists
5758
and returns the path to it.
5859
"""
5960
existing_deployment = Path(os.environ.get("EXISTING_DEPLOYMENT_DIR", ""))
6061
assert existing_deployment.exists()
6162
return existing_deployment.absolute()
62-

tests/tests_integration/test_all_clouds.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
def test_service_status(nebari_endpoint):
55
assert (
6-
requests.get(
7-
f"https://{nebari_endpoint}/hub/api/", verify=False
8-
).status_code
6+
requests.get(f"https://{nebari_endpoint}/hub/api/", verify=False).status_code
97
== 200
108
)
119
assert (
@@ -49,4 +47,10 @@ def test_verify_keycloak_users(nebari_config):
4947
user_realm_name="master",
5048
verify=False,
5149
)
52-
assert set([u["name"] for u in keycloak_admin.get_groups()]) == {'admin', 'analyst', 'developer', 'superadmin', 'users'}
50+
assert set([u["name"] for u in keycloak_admin.get_groups()]) == {
51+
"admin",
52+
"analyst",
53+
"developer",
54+
"superadmin",
55+
"users",
56+
}

tests/tests_integration/test_preemptible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
from kubernetes import client, config
2+
from kubernetes import client
33

44
from tests.common.config_mod_utils import PREEMPTIBLE_NODE_GROUP_NAME
55

0 commit comments

Comments
 (0)