[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-07-04 13:14:32 +00:00
committed by Duc Trung Le
parent aa754a1a2c
commit 81885d5c61
4 changed files with 2 additions and 2 deletions

View File

@@ -2486,7 +2486,6 @@ class JupyterHub(Application):
if key not in traits:
raise AttributeError("No such service field: %s" % key)
setattr(service, key, value)
print('###### updateing', key, value)
orm_service.update_column(key, value)
if service.api_token:

View File

@@ -490,7 +490,6 @@ class Service(Base):
returns `False` otherwise.
"""
if self._check_data_only_column(column_name):
print('NOT ForeignKey', column_name)
setattr(self, column_name, value)
return True
else:

View File

@@ -535,6 +535,7 @@ def pytest_terminal_summary(terminalreporter, exitstatus, config):
if queries:
terminalreporter.line(f"{queries:<6} {nodeid}")
@fixture
def service_data():
"""Data used to create service at runtime"""

View File

@@ -475,6 +475,7 @@ async def test_user_creation(tmpdir, request):
"in-role",
}
@pytest.fixture(scope='module')
def db_temp_path(tmp_path_factory):
fn = tmp_path_factory.mktemp("db") / "jupyterhub.sqlite"