diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 7f9b141c..d717714e 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -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: diff --git a/jupyterhub/orm.py b/jupyterhub/orm.py index bb962a07..43d2d077 100644 --- a/jupyterhub/orm.py +++ b/jupyterhub/orm.py @@ -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: diff --git a/jupyterhub/tests/conftest.py b/jupyterhub/tests/conftest.py index 9930fbf6..6e7b6423 100644 --- a/jupyterhub/tests/conftest.py +++ b/jupyterhub/tests/conftest.py @@ -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""" diff --git a/jupyterhub/tests/test_app.py b/jupyterhub/tests/test_app.py index d691f2d7..ea0130bd 100644 --- a/jupyterhub/tests/test_app.py +++ b/jupyterhub/tests/test_app.py @@ -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"