From d4559c13567ec90003ed8f7b7c9ce79a72324317 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 23 Jun 2023 10:53:53 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(test=5Ftemplate.py):=20add=20a?= =?UTF-8?q?ssertion=20to=20check=20if=20result=20is=20not=20None=20The=20t?= =?UTF-8?q?est=20now=20includes=20an=20assertion=20to=20check=20if=20the?= =?UTF-8?q?=20result=20of=20the=20function=20call=20is=20not=20None.=20Thi?= =?UTF-8?q?s=20ensures=20that=20the=20function=20is=20returning=20a=20valu?= =?UTF-8?q?e=20and=20that=20the=20test=20is=20checking=20the=20correct=20o?= =?UTF-8?q?utput.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_template.py b/tests/test_template.py index 66a0b0218..4be6dff06 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -82,6 +82,7 @@ def test_build_template_from_class(): # Test valid input result = build_template_from_class("Child", type_to_cls_dict) + assert result is not None assert "template" in result assert "description" in result assert "base_classes" in result