Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added skipping tests for not yet released functionality #67

Merged
merged 2 commits into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
768 changes: 764 additions & 4 deletions UnitTests/report.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
sys.path.append(".")
import pytest
from RFEM.Loads.surfaceLoad import *
from RFEM.Loads.memberLoad import *
from RFEM.Loads.nodalLoad import *
Expand All @@ -24,7 +25,14 @@
from RFEM.dataTypes import *
from RFEM.enums import *

if __name__ == '__main__':

def test_generation_mesh_implemented():

exist = method_exists(clientModel,'generate_mesh')
assert exist == False #test fail once method is in T9 master or GM

@pytest.mark.skip("all tests still WIP")
def test_generation_of_mesh_statistics():
# modal analysis not yet implemmented in released RFEM6
clientModel.service.begin_modification()

Expand Down
8 changes: 8 additions & 0 deletions UnitTests/test_SpectralSettings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@
from RFEM.Loads.nodalLoad import *
from RFEM.Loads.memberLoad import *
from RFEM.Loads.surfaceLoad import *
import pytest


def test_spectral_analysis_implemented():

exist = method_exists(clientModel,'set_spectral_analysis_settings')
assert exist == False #test fail once method is in T9 master or GM

@pytest.mark.skip("all tests still WIP")
def test_spectral_analysis_settings():

clientModel.service.begin_modification('new')
Expand Down
6 changes: 6 additions & 0 deletions UnitTests/test_modalAnalysis_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@
from RFEM.Loads.surfaceLoad import *
from RFEM.LoadCasesAndCombinations.modalAnalysisSettings import ModalAnalysisSettings
import sys
import pytest
sys.path.append(".")

def test_modal_analysis_implemented():

exist = method_exists(clientModel,'set_modal_analysis_settings')
assert exist == False #test fail once method is in T9 master or GM

@pytest.mark.skip("all tests still WIP")
def test_modal_analysis_settings():


Expand Down
15 changes: 8 additions & 7 deletions UnitTests/test_stabilitysettings.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import sys
import pytest
sys.path.append(".")
from RFEM.enums import *
from RFEM.dataTypes import *
from RFEM.initModel import *
from RFEM.LoadCasesAndCombinations.stabilityAnalysisSettings import *
from RFEM.LoadCasesAndCombinations.stabilityAnalysisSettings import *

@pytest.mark.skip("all tests still WIP")
def test_stability_analysis_settings_init():

clientModel.service.reset()
Expand All @@ -27,6 +29,7 @@ def test_stability_analysis_settings_init():
assert stability_analysis_settings.minimum_initial_strain == 1e-05
assert stability_analysis_settings.number_of_lowest_eigenvalues == 4

@pytest.mark.skip("all tests still WIP")
def test_stability_analysis_settings_eigenvalue_method():

clientModel.service.reset()
Expand Down Expand Up @@ -59,6 +62,7 @@ def test_stability_analysis_settings_eigenvalue_method():
assert stability_analysis_settings.minimum_initial_strain == 2.5e-05
assert stability_analysis_settings.number_of_lowest_eigenvalues == 5

@pytest.mark.skip("all tests still WIP")
def test_stability_analysis_settings_incrementaly_method_with_eigenvalue():

clientModel.service.reset()
Expand Down Expand Up @@ -102,6 +106,8 @@ def test_stability_analysis_settings_incrementaly_method_with_eigenvalue():
assert stability_analysis_settings.stopping_of_load_increasing_limit_result_displacement == 0.1
assert stability_analysis_settings.stopping_of_load_increasing_result == 'RESULT_TYPE_DISPLACEMENT_U'


@pytest.mark.skip("all tests still WIP")
def test_stability_analysis_settings_incrementaly_method_without_eigenvalue():

clientModel.service.reset()
Expand All @@ -128,9 +134,4 @@ def test_stability_analysis_settings_incrementaly_method_without_eigenvalue():
assert stability_analysis_settings.load_factor_increment == 0.25
assert stability_analysis_settings.maximum_number_of_load_increments == 125
assert stability_analysis_settings.refinement_of_the_last_load_increment == 5
assert stability_analysis_settings.save_results_of_all_increments == False

test_stability_analysis_settings_init()
test_stability_analysis_settings_eigenvalue_method()
test_stability_analysis_settings_incrementaly_method_with_eigenvalue()
test_stability_analysis_settings_incrementaly_method_without_eigenvalue()
assert stability_analysis_settings.save_results_of_all_increments == False