Skip to content

Commit

Permalink
Extend service tests to cover full serialization
Browse files Browse the repository at this point in the history
This confirms #118.
  • Loading branch information
dlax committed Feb 21, 2024
1 parent 2d45475 commit a431f15
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,21 @@ def test_render():
raw = fo.getvalue()

# Ensure no space around =
assert "host=myhost" in raw
assert raw == "\n".join(
[
"[service0]",
"name=service0",
"port=5432",
"",
"[service1]",
"name=service1",
"host=myhost",
"",
"",
]
)
# TODO: In ^, 'name=' entries should not be there,
# see https://github.com/dalibo/pgtoolkit/issues/118


def test_sysconfdir(mocker):
Expand Down

0 comments on commit a431f15

Please sign in to comment.