27 lines
969 B
Diff
27 lines
969 B
Diff
From ad6a8ee26ae553e9d7a9aff4e348867d32eadcf0 Mon Sep 17 00:00:00 2001
|
|
From: yuelg <yuelg@chinaunicom.cn>
|
|
Date: Thu, 20 Apr 2023 18:16:21 +0800
|
|
Subject: [PATCH 1/1] fix a small unitest error
|
|
|
|
Signed-off-by: yuelg <yuelg@chinaunicom.cn>
|
|
---
|
|
tests/unittests/test_templating.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/unittests/test_templating.py b/tests/unittests/test_templating.py
|
|
index cba0983..116a647 100644
|
|
--- a/tests/unittests/test_templating.py
|
|
+++ b/tests/unittests/test_templating.py
|
|
@@ -58,7 +58,7 @@ class TestTemplates(test_helpers.CiTestCase):
|
|
blob = "blahblah $blah"
|
|
(template_type, _renderer, _contents) = templater.detect_template(blob)
|
|
self.assertIn("cheetah", template_type)
|
|
- self.assertEqual(blob, contents)
|
|
+ self.assertEqual(blob, _contents)
|
|
|
|
blob = '##template:something-new'
|
|
self.assertRaises(ValueError, templater.detect_template, blob)
|
|
--
|
|
2.33.0
|
|
|