From 92275e9e529d9a001091dda3eb88700c14a10c7a Mon Sep 17 00:00:00 2001 From: sean-engelstad Date: Thu, 2 Nov 2023 10:58:54 -0400 Subject: [PATCH] black reformat new unittest --- tests/unit_tests/framework/test_functions_file.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/unit_tests/framework/test_functions_file.py b/tests/unit_tests/framework/test_functions_file.py index a3352f9e..a6c4bba2 100644 --- a/tests/unit_tests/framework/test_functions_file.py +++ b/tests/unit_tests/framework/test_functions_file.py @@ -34,8 +34,8 @@ remote = Remote(comm, ".py", base_dir, nprocs=1) -class TestFunctionsFile(unittest.TestCase): +class TestFunctionsFile(unittest.TestCase): def test_multiscenario_aeroelastic(self): """ test composite functions over two scenarios with aerothermoelastic coupling and a funtofem driver @@ -93,9 +93,7 @@ def test_multiscenario_aeroelastic(self): solvers.flow = TestAerodynamicSolver(comm, model) # instantiate the driver to in initialize transfer scheme - FUNtoFEMnlbgs( - solvers, transfer_settings=TransferSettings(npts=5), model=model - ) + FUNtoFEMnlbgs(solvers, transfer_settings=TransferSettings(npts=5), model=model) # set analysis functions to random values for func in model.get_functions(): @@ -120,10 +118,14 @@ def test_multiscenario_aeroelastic(self): model.evaluate_composite_functions(compute_grad=True) # write out the functions file again - model.write_functions_file(comm, remote._functions_file+"2", full_precision=True) + model.write_functions_file( + comm, remote._functions_file + "2", full_precision=True + ) # write the full functions file for optimization - model.write_functions_file(comm, remote.functions_file, full_precision=False, optim=True) + model.write_functions_file( + comm, remote.functions_file, full_precision=False, optim=True + ) if __name__ == "__main__":