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] authored and costrouc committed Jul 19, 2023
1 parent d661230 commit 45dbb40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests_deployment/test_jupyterhub_ssh.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import re
import string
import uuid

import paramiko
import pytest
import string

from _nebari.utils import escape_string
from tests_deployment import constants
Expand Down Expand Up @@ -99,7 +99,10 @@ def test_exact_jupyterhub_ssh(paramiko_object):
("pwd", f"/home/{constants.KEYCLOAK_USERNAME}"),
("echo $HOME", f"/home/{constants.KEYCLOAK_USERNAME}"),
("conda activate default && echo $CONDA_PREFIX", "/opt/conda/envs/default"),
("hostname", f"jupyter-{escape_string(constants.KEYCLOAK_USERNAME, safe=set(string.ascii_lowercase + string.digits), escape_char='-').lower()}"),
(
"hostname",
f"jupyter-{escape_string(constants.KEYCLOAK_USERNAME, safe=set(string.ascii_lowercase + string.digits), escape_char='-').lower()}",
),
]

for command, output in commands_exact:
Expand Down

0 comments on commit 45dbb40

Please sign in to comment.