mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
tests: Remove use_db flag from test_server_running.
It was only ever true, since 2563f93d46.
This commit is contained in:
committed by
Tim Abbott
parent
1928696829
commit
ece0aaa6cc
@@ -51,7 +51,7 @@ def server_is_up(server: "subprocess.Popen[bytes]", log_file: Optional[str]) ->
|
||||
|
||||
@contextmanager
|
||||
def test_server_running(force: bool=False, external_host: str='testserver',
|
||||
log_file: Optional[str]=None, dots: bool=False, use_db: bool=True,
|
||||
log_file: Optional[str]=None, dots: bool=False,
|
||||
) -> Iterator[None]:
|
||||
log = sys.stdout
|
||||
if log_file:
|
||||
@@ -63,7 +63,6 @@ def test_server_running(force: bool=False, external_host: str='testserver',
|
||||
|
||||
set_up_django(external_host)
|
||||
|
||||
if use_db:
|
||||
update_test_databases_if_required(rebuild_test_database=True)
|
||||
|
||||
# Run this not through the shell, so that we have the actual PID.
|
||||
|
||||
@@ -54,7 +54,7 @@ def vnu_servlet() -> Iterator[None]:
|
||||
|
||||
with vnu_servlet(), \
|
||||
test_server_running(options.force, external_host, log_file=LOG_FILE,
|
||||
dots=True, use_db=True):
|
||||
dots=True):
|
||||
ret_help_doc = subprocess.call(['scrapy', 'crawl_with_status', *extra_args,
|
||||
'help_documentation_crawler'],
|
||||
cwd='tools/documentation_crawler')
|
||||
|
||||
Reference in New Issue
Block a user