Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
roosre committed Sep 22, 2023
1 parent d9f3db9 commit fe3c22e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/composite_model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ def test_basic_functionality_of_composite_model(dpf_server, data_files, distribu

assert [ply["id"] for ply in sampling_point.analysis_plies] == analysis_ply_ids

ref_material_names = {
'Epoxy Carbon UD (230 GPa) Prepreg': 3,
'Epoxy Carbon Woven (230 GPa) Wet': 2,
'Honeycomb': 4,
'Structural Steel': 1
}
mat_names = composite_model.material_names
assert len(mat_names) == len(ref_material_names)
for mat_name, dpf_mat_id in ref_material_names.items():
assert mat_names[mat_name] == dpf_mat_id

timer.add("After getting properties")

timer.summary()
Expand Down

0 comments on commit fe3c22e

Please sign in to comment.