summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorRuben Herold <ruben@puettmann.net>2026-08-10 15:40:48 +0200
committerRuben Herold <ruben@puettmann.net>2026-08-10 15:40:48 +0200
commitd3b48b76bd71fec1d09db6c72963de797f8ccb93 (patch)
tree34ced83f5e0474b0a310a966b1d73183532da02c /smoketest/scripts/cli
parent4432fcf72ca20be430aa9577eee0446d35a2539b (diff)
downloadvyos-1x-d3b48b76bd71fec1d09db6c72963de797f8ccb93.tar.gz
vyos-1x-d3b48b76bd71fec1d09db6c72963de797f8ccb93.zip
ntp: T9159: apply darker/black formatting
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_service_ntp.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/smoketest/scripts/cli/test_service_ntp.py b/smoketest/scripts/cli/test_service_ntp.py
index 03caa73b3..0b8094963 100755
--- a/smoketest/scripts/cli/test_service_ntp.py
+++ b/smoketest/scripts/cli/test_service_ntp.py
@@ -145,8 +145,8 @@ class TestSystemNTP(VyOSUnitTestSHIM.TestCase):
self.cli_set(base_path + ['source-address', '192.0.2.2'])
try:
with self.assertRaisesRegex(
- ConfigSessionError,
- 'Only admits one ipv4 value for source-address'):
+ ConfigSessionError, 'Only admits one ipv4 value for source-address'
+ ):
self.cli_commit()
finally:
# remove the invalid subtree entirely (rather than leaving a
@@ -172,8 +172,8 @@ class TestSystemNTP(VyOSUnitTestSHIM.TestCase):
self.cli_set(base_path + ['source-address', '2001:db8::2'])
try:
with self.assertRaisesRegex(
- ConfigSessionError,
- 'Only admits one ipv6 value for source-address'):
+ ConfigSessionError, 'Only admits one ipv6 value for source-address'
+ ):
self.cli_commit()
finally:
# see the ipv4 test above for why this is in a finally block
@@ -185,8 +185,9 @@ class TestSystemNTP(VyOSUnitTestSHIM.TestCase):
# source-address must be assigned to a local interface
self.cli_set(base_path + ['source-address', '192.0.2.1'])
try:
- with self.assertRaisesRegex(ConfigSessionError,
- 'not assigned to any interface'):
+ with self.assertRaisesRegex(
+ ConfigSessionError, 'not assigned to any interface'
+ ):
self.cli_commit()
finally:
self.cli_delete(base_path + ['source-address'])