From 4813177fd8701d1cc6e0ef5ce02e1dcd877e1a0d Mon Sep 17 00:00:00 2001 From: Braden Date: Thu, 28 Mar 2024 12:17:51 -0600 Subject: [PATCH] Added tearDownClass to test_ProcessSofastFixed --- opencsp/app/sofast/test/test_ProcessSofastFixed.py | 5 +++++ opencsp/app/sofast/test/test_project_fixed_pattern_target.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opencsp/app/sofast/test/test_ProcessSofastFixed.py b/opencsp/app/sofast/test/test_ProcessSofastFixed.py index 07774f5b1..79e3355fd 100644 --- a/opencsp/app/sofast/test/test_ProcessSofastFixed.py +++ b/opencsp/app/sofast/test/test_ProcessSofastFixed.py @@ -4,6 +4,7 @@ from os.path import join import unittest +import matplotlib.pyplot as plt import numpy as np from opencsp.app.sofast.lib.DefinitionFacet import DefinitionFacet @@ -82,6 +83,10 @@ def test_slopes_xy(self): self.process_sofast_fixed.data_slope_solver.slopes_facet_xy, self.exp_slopes_xy, rtol=0, atol=1e-6 ) + @classmethod + def tearDownClass(cls): + plt.close('all') + if __name__ == '__main__': unittest.main() diff --git a/opencsp/app/sofast/test/test_project_fixed_pattern_target.py b/opencsp/app/sofast/test/test_project_fixed_pattern_target.py index 70a5448cb..b596c7907 100644 --- a/opencsp/app/sofast/test/test_project_fixed_pattern_target.py +++ b/opencsp/app/sofast/test/test_project_fixed_pattern_target.py @@ -3,7 +3,6 @@ import os -import matplotlib import pytest from opencsp.common.lib.opencsp_path.opencsp_root_path import opencsp_code_dir