Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Apr 25, 2024
1 parent 566c384 commit b63bb0a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions quetz/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
runner = CliRunner()


import logging
logging.basicConfig(level=logging.DEBUG)


@pytest.fixture
def user_group():
return "admins"
Expand Down Expand Up @@ -598,13 +594,9 @@ def test_start_server_local_without_deployment(
empty_config_on_exit: None, mandatory_environment_variables: None
):
"""Error starting server without deployment directory"""
log = logging.getLogger('test_start_server_local_without_deployment')
log.debug(" started")
res = runner.invoke(cli.app, ["start"])
assert res.exit_code == 1
assert "The specified directory is not a deployment" in res.output
log.debug(" finished")


# these tests are strange. I assume they use the fact that pytest timeout might send a signal
# this signal is then processed by the Interrupt class, which kills the server ? I don't know
Expand All @@ -618,8 +610,6 @@ def test_start_server_local_with_deployment_and_config_file(
empty_config_on_exit: None, config, config_dir, create_channels_dir, create_tables
):
"""Starting server with deployment directory"""
log = logging.getLogger('test_start_server_local_with_deployment_and_config_file')
log.debug("started")
p = Process(target=cli.app, args=(["start", config_dir, "--port", "8001"],))
with Interrupt():
p.start()
Expand All @@ -642,15 +632,12 @@ def test_start_server_local_with_deployment_without_config_file(
Starting server with deployment directory but no config file,
using environmental variables instead
"""
log = logging.getLogger('test_start_server_local_with_deployment_without_config_file')
log.debug("started")
p = Process(target=cli.app, args=(["start", config_dir, "--port", "8001"],))
with Interrupt():
p.start()
p.join()

assert p.exitcode == 0
log.debug("finished")


@pytest.mark.parametrize("sqlite_in_memory", [False])
Expand Down

0 comments on commit b63bb0a

Please sign in to comment.