Skip to content

Commit 6790e83

Browse files
koubaaMohamed Koubaapyansys-ci-bot
authored
fix: add test scenario for bug 584 (#729)
Co-authored-by: Mohamed Koubaa <[email protected]> Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 3574b77 commit 6790e83

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

doc/changelog/729.documentation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: add test scenario for bug 584

tests/test_keywords.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ def test_read_keyword_no_defaults():
213213
def test_boundary_prescribed_motion_set(ref_string):
214214
b = kwd.BoundaryPrescribedMotionSet()
215215
assert b.write() == ref_string.test_boundary_prescribed_motion_set
216+
b.loads(ref_string.test_boundary_prescribed_motion_set2)
217+
assert b.lcid == 100
216218

217219

218220
@pytest.mark.keywords

tests/testfiles/keywords/reference_string.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@
202202
test_boundary_prescribed_motion_set = """*BOUNDARY_PRESCRIBED_MOTION_SET
203203
$# nsid dof vad lcid sf vid death birth
204204
0 0 1.0 1e+28 0.0"""
205+
206+
test_boundary_prescribed_motion_set2 = """*BOUNDARY_PRESCRIBED_MOTION_SET
207+
100 1 2 100 0.0 0 2.0 0.0"""
205208

206209
test_constrained_beam_in_solid = """*CONSTRAINED_BEAM_IN_SOLID
207210
$# bside ssid bstyp sstyp unused unused ncoup cdir

0 commit comments

Comments
 (0)