Skip to content

Commit 684e5c3

Browse files
committed
Add verbose to test failing in CI but pass in local
1 parent eceff9c commit 684e5c3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

tests/uvlm/static/polars/generate_wing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def generate_infinite_wing(case_name, alpha, **kwargs):
5050
settings['SHARPy'] = {'case': case_name,
5151
'route': case_route,
5252
'flow': kwargs.get('flow', []),
53-
'write_screen': 'off',
53+
'write_screen': kwargs.get('write_screen', 'off'),
5454
'write_log': 'on',
5555
'log_folder': output_route,
5656
'log_file': case_name + '.log'}

tests/uvlm/static/polars/test_polars.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TestAirfoilPolars(unittest.TestCase):
3232
polar.initialise(np.column_stack((polar_data[:, 0] * np.pi / 180, polar_data[:, 1], polar_data[:, 2],
3333
polar_data[:, 4])))
3434

35-
print_info = False
35+
print_info = True
3636

3737
def test_infinite_wing(self):
3838
"""
@@ -108,7 +108,8 @@ def run_linear_test(self, alpha, cases_route, output_route):
108108
polar_file=self.route_test_dir + '/xf-naca0018-il-50000.txt',
109109
aspect_ratio=1e7,
110110
main_ea=0.25,
111-
output_route=output_route)
111+
output_route=output_route,
112+
write_screen=self.print_info)
112113

113114
derivatives = self.postprocess_linear(case_name)
114115

0 commit comments

Comments
 (0)