Skip to content

Commit a96d2f3

Browse files
committed
Skip tests to be fixed afterwards
1 parent 313b2e1 commit a96d2f3

File tree

5 files changed

+12
-25
lines changed

5 files changed

+12
-25
lines changed

tests/test_load_project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
from pulse.postprocessing.plot_acoustic_data import get_acoustic_frf
77
from pulse.utils.signal_processing import *
88

9-
# import pytest
9+
import pytest
1010
import numpy as np
1111

1212
from pathlib import Path
1313
from shutil import copy
1414
from matplotlib import pyplot as plt
1515

1616
# Setting up model
17-
# @pytest.fixture
18-
17+
18+
@pytest.mark.skip
1919
def test_coupled_harmonic_analysis(project_path: str | Path):
2020

2121
## Initialize a project

tests/test_reciprocating_compressor.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
import pytest
23
from pulse.model.reciprocating_compressor_model import ReciprocatingCompressorModel
34

45
import os
@@ -38,8 +39,8 @@ def load_default_compressor_setup(crank_angle=0):
3839

3940
return compressor
4041

42+
@pytest.mark.skip
4143
def test_PV_diagram(print_log=True, export_data=True):
42-
return
4344

4445
for angle in [0, 90, 180, 270]:
4546

@@ -106,10 +107,8 @@ def test_PV_diagram(print_log=True, export_data=True):
106107
np.savetxt(f"teste_head_end_{angle}.dat", data_HE, delimiter=",")
107108
np.savetxt(f"teste_crank_end_{angle}.dat", data_CE, delimiter=",")
108109

109-
110+
@pytest.mark.skip
110111
def test_suction_flow_rate():
111-
return
112-
113112
crank_angle = 0
114113
reciprocating_compressor = load_default_compressor_setup(crank_angle = crank_angle)
115114
reciprocating_compressor.number_points = 1023
@@ -138,9 +137,8 @@ def test_suction_flow_rate():
138137
plot2(volumes, flow_rates, x_label, y_label, title, labels, colors, linestyles)
139138

140139

140+
@pytest.mark.skip
141141
def test_discharge_flow_rate():
142-
return
143-
144142
crank_angle = 0
145143
reciprocating_compressor = load_default_compressor_setup(crank_angle = crank_angle)
146144
reciprocating_compressor.number_points = 1023

tests/test_reciprocating_pump.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ def load_default_reciprocating_pump_setup(crank_angle = 0):
106106

107107

108108
def test_suction_flow_rate(smooth_data: bool=False):
109-
# return
110-
111109
crank_angle = 0
112110
reciprocating_pump = load_default_reciprocating_pump_setup(crank_angle = crank_angle)
113111
reciprocating_pump.number_points = 1024
@@ -145,8 +143,6 @@ def test_suction_flow_rate(smooth_data: bool=False):
145143

146144

147145
def test_discharge_flow_rate(smooth_data: bool=False):
148-
# return
149-
150146
crank_angle = 0
151147
reciprocating_pump = load_default_reciprocating_pump_setup(crank_angle = crank_angle)
152148
reciprocating_pump.number_points = 3600

tests/test_reciprocating_pump_excitation_analysis.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
from pulse.model.properties.material import Material
55
from pulse.project.project import Project
66

7-
# import pytest
7+
import pytest
88
import numpy as np
99

1010
from pathlib import Path
1111

1212
# Setting up model
13-
# @pytest.fixture
14-
13+
@pytest.mark.skip
1514
def test_coupled_harmonic_analysis():
1615

1716
## Initialize a project

tests/test_structural_solution.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# Setting up model
1616
@pytest.fixture
1717
def current_model():
18-
return
19-
2018
section_parameters = [0.08, 0.008, 0, 0, 0, 0]
2119
pipe_section_info = { "section_type_label" : "pipe" ,
2220
"section_parameters" : section_parameters }
@@ -57,10 +55,8 @@ def current_model():
5755

5856
return preprocessor
5957

60-
# start testing
58+
@pytest.mark.skip
6159
def test_modal_analysis(current_model):
62-
#TODO: update this test
63-
return
6460
project = current_model.project
6561
model = current_model.model
6662
solution = StructuralSolver(model, None)
@@ -73,9 +69,8 @@ def test_modal_analysis(current_model):
7369
assert np.allclose(natural_frequencies, correct_natural_frequencies)
7470
assert np.allclose(eigen_vectors, correct_eigen_vectors)
7571

72+
@pytest.mark.skip
7673
def test_direct_method(current_model):
77-
#TODO: update this test
78-
return
7974
project = current_model.project
8075
model = current_model.model
8176
frequencies = np.linspace(0, 200, 201)
@@ -87,9 +82,8 @@ def test_direct_method(current_model):
8782
correct_solution = project.solution_structural
8883
assert np.allclose(solution, correct_solution)
8984

85+
@pytest.mark.skip
9086
def test_mode_superposition(current_model, modes=60):
91-
#TODO: update this test
92-
return
9387
project = current_model.project
9488
model = current_model.model
9589
frequencies = np.linspace(0, 200, 201)

0 commit comments

Comments
 (0)