From f6342fc5f00b48e679e7c2c3579b1b27d94ffc1f Mon Sep 17 00:00:00 2001 From: Jason Brand Date: Wed, 16 Feb 2022 00:22:37 +0000 Subject: Prettify, add %C as acceptable controlpath token, mock gethostname --- tests/test_config.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_config.py b/tests/test_config.py index 5e9aa059..892b4c92 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -42,6 +42,7 @@ def socket(): # Patch out getfqdn to return some real string for when it gets called; # some code (eg tokenization) gets mad w/ MagicMocks mocket.getfqdn.return_value = "some.fake.fqdn" + mocket.gethostname.return_value = "local.fake.fqdn" yield mocket -- cgit v1.2.3