25592fa6c2
ci / test (push) Successful in 6m14s
History-free snapshot of the private development repository at 77a82eb. Code, docs and the public catalogue only: no plant or job knowledge layers, no client, job or producer names (tools/scrub.py clean against the widened term list; a second word-level grep clean). The intro deck is left out because its slide images cannot be checked for job drawings.
16 lines
555 B
Python
16 lines
555 B
Python
"""`Panel.ignore_lateral_prestress` drops the in-plane prestress term from
|
|
the corner stresses -- the plant's reference-tool convention -- and is off
|
|
by default."""
|
|
from panellift.model import Panel
|
|
|
|
|
|
def test_default_is_off():
|
|
assert Panel(mark='X', length_ft=20.0, width_ft=10.0,
|
|
thickness_in=8.0).ignore_lateral_prestress is False
|
|
|
|
|
|
def test_flag_is_a_plain_field():
|
|
p = Panel(mark='X', length_ft=20.0, width_ft=10.0, thickness_in=8.0,
|
|
ignore_lateral_prestress=True)
|
|
assert p.ignore_lateral_prestress is True
|