mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
flake8 fixes: unused imports and f-strings without vars
This commit is contained in:
@@ -2,7 +2,6 @@ from hubtraf.user import User
|
||||
from hubtraf.auth.dummy import login_dummy
|
||||
import pytest
|
||||
from functools import partial
|
||||
import asyncio
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ from functools import partial
|
||||
import asyncio
|
||||
import pwd
|
||||
import grp
|
||||
import sys
|
||||
import subprocess
|
||||
from os import system
|
||||
from tljh.normalize import generate_system_username
|
||||
|
||||
@@ -12,7 +12,6 @@ import pytest
|
||||
from tljh.config import (
|
||||
reload_component,
|
||||
set_config_value,
|
||||
unset_config_value,
|
||||
CONFIG_FILE,
|
||||
CONFIG_DIR,
|
||||
STATE_DIR,
|
||||
|
||||
@@ -84,7 +84,7 @@ def test_new_user_create():
|
||||
# Call ensure_user to make sure the user plugin gets called
|
||||
user.ensure_user(username)
|
||||
|
||||
with open(f"test_new_user_create") as f:
|
||||
with open("test_new_user_create") as f:
|
||||
content = f.read()
|
||||
|
||||
assert content == username
|
||||
|
||||
Reference in New Issue
Block a user