From 58481ac33f5b76e9a3a64951b21ee652f6d953fa Mon Sep 17 00:00:00 2001 From: David Michaels Date: Tue, 19 Dec 2023 10:56:04 -0500 Subject: [PATCH] Add ability to actually start a Portal instance purely for test purposes. --- dcicutils/portal_utils.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dcicutils/portal_utils.py b/dcicutils/portal_utils.py index 9ad536fda..df6625ce7 100644 --- a/dcicutils/portal_utils.py +++ b/dcicutils/portal_utils.py @@ -401,7 +401,7 @@ def endpoint_wrapper(request): # noqa return Portal._create_router_for_testing([]) return config.make_wsgi_app() - def start(self, port: int = 8080, asynchronous: bool = False) -> Optional[Thread]: + def start_for_testing(self, port: int = 8080, asynchronous: bool = False) -> Optional[Thread]: if isinstance(self._vapp, TestApp) and hasattr(self._vapp, "app") and isinstance(self._vapp.app, PyramidRouter): def start_server() -> None: # noqa with wsgi_make_server("0.0.0.0", port, self._vapp.app) as server: diff --git a/pyproject.toml b/pyproject.toml index 13b2419e9..03c3f776a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dcicutils" -version = "8.5.0.1b8" # TODO: To become 8.6.0 +version = "8.5.0.1b9" # TODO: To become 8.6.0 description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources" authors = ["4DN-DCIC Team "] license = "MIT"