Skip to content

Commit

Permalink
Add ability to actually start a Portal instance purely for test purpo…
Browse files Browse the repository at this point in the history
…ses.
  • Loading branch information
dmichaels-harvard committed Dec 19, 2023
1 parent bbc1d31 commit 58481ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dcicutils/portal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 58481ac

Please sign in to comment.