From 86e32bc048f201e459e140e0bd2e85d3d3274c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Wed, 25 Nov 2020 17:59:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=82=D0=B5=D1=81=D1=82=20=D0=B4=D0=BB=D1=8F=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B0=20KDE=20=D1=81=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=BE=D0=BC=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=86=D0=B5=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://git.calculate-linux.org/calculate/calculate-utils-4-lib/issues/44 --- tests/templates/format/test_kde.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/templates/format/test_kde.py b/tests/templates/format/test_kde.py index 75f8e91..85fcd0e 100644 --- a/tests/templates/format/test_kde.py +++ b/tests/templates/format/test_kde.py @@ -404,6 +404,26 @@ NoShow=true Name[pl]=Przechowalnia certyfikatów i\xa0kluczy Comment[fr]=Trousseau de clés de GNOME\xa0: composant PKCS#11 +''' + + original_object = KDEFormat(original_text, '/path/to/template') + template_object = KDEFormat(template_text, '/path/to/template') + original_object.join_template(template_object) + assert original_object.document_text == join_result + + def test_with_space_at_end_of_parameter(self): + original_text = '''[Test] +Name[pl]=Hello +NoShow=true +''' + + template_text = '''[Test] +!NoShow= +''' + + join_result = '''[Test] +Name[pl]=Hello + ''' original_object = KDEFormat(original_text, '/path/to/template')