From e61268dc490b15a0c3ed488508e9baa09db93222 Mon Sep 17 00:00:00 2001 From: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:07:43 -0400 Subject: [PATCH] Update test_template_v2.py The `template_v2_pytest` file diverged from its UnitTest lineage. Fix errors caught by the latest `mypy`. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com> --- test/test_template_v2.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/test_template_v2.py b/test/test_template_v2.py index 31ba2ea8..96608695 100644 --- a/test/test_template_v2.py +++ b/test/test_template_v2.py @@ -1,5 +1,6 @@ import json import os +import sys from typing import List from unittest import TestCase @@ -661,11 +662,4 @@ def test_ch4_gwp(template_V2_S3: TemplateV2): if __name__ == "__main__": - test_PC = template_V2_PC() - test_PC.setUp() - test_PC.test_temp_score() - test_PC.test_target_projections() - test_PC.test_get_company_data() - - test_S3 = template_V2_S3() - test_S3.setUp() + sys.exit(pytest.main())