forked from dlubal-software/RFEM_Python_Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_availableActionCategories.py
More file actions
31 lines (23 loc) · 944 Bytes
/
Copy pathtest_availableActionCategories.py
File metadata and controls
31 lines (23 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
import sys
PROJECT_ROOT = os.path.abspath(os.path.join(
os.path.dirname(__file__),
os.pardir)
)
sys.path.append(PROJECT_ROOT)
from RFEM.initModel import Model
from RFEM.LoadCasesAndCombinations.loadCasesAndCombinations import LoadCasesAndCombinations
from RFEM.LoadCasesAndCombinations.staticAnalysisSettings import StaticAnalysisSettings
if Model.clientModel is None:
Model()
def test_availableActionCategories():
Model.clientModel.service.delete_all()
Model.clientModel.service.begin_modification()
LoadCasesAndCombinations(params={
"current_standard_for_combination_wizard" : 6042
})
StaticAnalysisSettings()
Model.clientModel.service.finish_modification()
availableActionCategories = LoadCasesAndCombinations.getAvailableLoadActionCategoryTypes()
assert len(availableActionCategories) == 19
assert type(availableActionCategories) == list