Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ license = "MIT"
name = "suthing"
readme = "README.md"
requires-python = "~=3.10"
version = "0.4.0"
version = "0.4.1"

[project.urls]
Homepage = "https://github.com/growgraph/suthing"
Expand Down
4 changes: 2 additions & 2 deletions suthing/connection/onto.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def __post_init__(self):
self.url = self.hosts
if self.url:
self._parse_url()
elif self.hostname:
elif self.hostname is not None:
self.url = f"{self.protocol}://{self.hostname}"
elif self.port:
if self.port is not None:
self.url = f"{self.url}:{self.port}"

def _parse_url(self):
Expand Down
1 change: 1 addition & 0 deletions test/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def test_factory():
}
ac = ConfigFactory.create_config(arango_args)
assert int(ac.port) == 8529
assert ac.url[-4:] == str(ac.port)


def test_wsgi():
Expand Down
Loading