summaryrefslogtreecommitdiffstats
path: root/tests/test_main.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 04:17:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 04:17:24 +0000
commit9b77fda0d4171f68760c070895dc5700cb6d1e0f (patch)
tree37912945e9d35ef62e5a4a1eb07ac224307e5db6 /tests/test_main.py
parentReleasing debian version 3.1.0-3. (diff)
downloadpgcli-9b77fda0d4171f68760c070895dc5700cb6d1e0f.tar.xz
pgcli-9b77fda0d4171f68760c070895dc5700cb6d1e0f.zip
Merging upstream version 3.2.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_main.py')
-rw-r--r--tests/test_main.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_main.py b/tests/test_main.py
index 9b85a34..c48accb 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -1,6 +1,6 @@
import os
import platform
-import mock
+from unittest import mock
import pytest
@@ -288,7 +288,12 @@ def test_pg_service_file(tmpdir):
cli = PGCli(pgclirc_file=str(tmpdir.join("rcfile")))
with open(tmpdir.join(".pg_service.conf").strpath, "w") as service_conf:
service_conf.write(
- """[myservice]
+ """File begins with a comment
+ that is not a comment
+ # or maybe a comment after all
+ because psql is crazy
+
+ [myservice]
host=a_host
user=a_user
port=5433