Skip to content

Commit

Permalink
only mid
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Apr 24, 2024
1 parent bc2ae9f commit c9b5a3a
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions quetz/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,46 +622,46 @@ def test_start_server_local_without_deployment(
# log.debug("finished")


# @pytest.mark.parametrize("sqlite_in_memory", [False])
# @pytest.mark.timeout(1)
# def test_start_server_local_with_deployment_without_config_file(
# empty_config_on_exit: None,
# config_dir,
# create_channels_dir,
# create_tables,
# mandatory_environment_variables: None,
# ):
# """
# 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])
@pytest.mark.timeout(1)
def test_start_server_s3_without_deployment_without_config_file(
def test_start_server_local_with_deployment_without_config_file(
empty_config_on_exit: None,
config_dir,
create_channels_dir,
create_tables,
mandatory_environment_variables: None,
s3_environment_variable: None,
):
"""
Starting server without deployment directory and no config file,
using environmental variables and remote storage.
Starting server with deployment directory but no config file,
using environmental variables instead
"""

p = Process(target=cli.app, args=(["start", "--port", "8001"],))
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])
# @pytest.mark.timeout(1)
# def test_start_server_s3_without_deployment_without_config_file(
# empty_config_on_exit: None,
# create_tables,
# mandatory_environment_variables: None,
# s3_environment_variable: None,
# ):
# """
# Starting server without deployment directory and no config file,
# using environmental variables and remote storage.
# """

# p = Process(target=cli.app, args=(["start", "--port", "8001"],))
# with Interrupt():
# p.start()
# p.join()

# assert p.exitcode == 0

0 comments on commit c9b5a3a

Please sign in to comment.