mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 22:13:00 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
![66853113+pre-commit-ci[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Duc Trung Le

parent
aa754a1a2c
commit
81885d5c61
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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"""
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user