Skip to content

Commit 471b8e5

Browse files
committed
correct unittest
1 parent 6c878de commit 471b8e5

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.codacy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
ignore_paths:
22
- "installation/Pentagrow/**"
33
- "**/Pentagrow/**"
4+
- "**/eigen/**"
5+
- "**/nlopt/**"

installation/Ubuntu/install_su2_without_mpi.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ echo "export SU2_RUN=\"$su2_run_path\"" >> ~/.bashrc
2727
echo "export PYTHONPATH=\$PYTHONPATH:\$SU2_RUN" >> ~/.bashrc
2828
echo "export PATH=\$PATH:\$SU2_RUN" >> ~/.bashrc
2929

30+
source ~/.bashrc
31+
3032
echo "Checking SU2 version"
3133
"$SU2_RUN/SU2_CFD" --help
3234

src/ceasiompy/ExportCSV/tests/test_exportcsv.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ def test_export_aeromaps(self):
4949

5050
features_str = "altitude,machNumber,angleOfSideslip,angleOfAttack"
5151
assert lines[0] == f"{features_str},cd,cl,cs,cmd,cml,cms\n"
52-
assert lines[1] == "0,0.3,0,0,0.01,0.1,0.001,NaN,NaN,NaN\n"
53-
assert lines[2] == "0,0.3,0,10,0.01,0.1,0.001,NaN,NaN,NaN\n"
54-
assert lines[3] == "0,0.3,10,0,0.01,0.1,0.001,NaN,NaN,NaN\n"
55-
assert lines[4] == "0,0.3,10,10,0.01,0.1,0.001,NaN,NaN,NaN\n"
52+
assert lines[1] == "0,0.3,0,0,0.01,0.1,0.001,0.002,0.002,0.004\n"
53+
assert lines[2] == "0,0.3,0,10,0.01,0.1,0.001,0.002,0.002,0.002\n"
54+
assert lines[3] == "0,0.3,10,0,0.01,0.1,0.001,0.004,0.004,0.004\n"
55+
assert lines[4] == "0,0.3,10,10,0.01,0.1,0.001,0.004,0.002,0.002\n"
5656

5757

5858
# =================================================================================================

0 commit comments

Comments
 (0)