Module: check_mk
Branch: master
Commit: b0df4287f0749703ca9a2aec68c0d2a365433ca3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0df4287f07497…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Wed Mar 13 12:06:19 2019 +0100
Fix assert of tuple, syntax warning
Change-Id: I748520dc6bc17eb8e70deb41a3878ecbf64574a1
---
tests/unit/cmk/special_agents/test_agent_kubernetes_nodes.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/unit/cmk/special_agents/test_agent_kubernetes_nodes.py
b/tests/unit/cmk/special_agents/test_agent_kubernetes_nodes.py
index d260a26..33b64c1 100644
--- a/tests/unit/cmk/special_agents/test_agent_kubernetes_nodes.py
+++ b/tests/unit/cmk/special_agents/test_agent_kubernetes_nodes.py
@@ -26,8 +26,8 @@ def test_node_timestamps_utc():
]
stats = cluster_stats(node_names, stat_time_formatted)
utc_timestamp_average = 1550235205.3
- assert (stats['timestamp'] == pytest.approx(utc_timestamp_average),
- "The timestamp of a cluster has to be the average timestamp of its
nodes")
+ assert stats['timestamp'] == pytest.approx(utc_timestamp_average),\
+ "The timestamp of a cluster has to be the average timestamp of its
nodes"
def test_node_timestamps_non_utc():
@@ -39,5 +39,5 @@ def test_node_timestamps_non_utc():
]
stats = cluster_stats(node_names, stat_time_formatted)
utc_timestamp_average = 1551429894.7
- assert (stats['timestamp'] == pytest.approx(utc_timestamp_average),
- "The timestamp of a cluster has to be the average timestamp of its
nodes")
+ assert stats['timestamp'] == pytest.approx(utc_timestamp_average),\
+ "The timestamp of a cluster has to be the average timestamp of its
nodes"