generated from specklesystems/speckle_automate_python_example
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspecs.py
57 lines (36 loc) · 1.4 KB
/
specs.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import maple as mp
# def spec_a():
# mp.it("checks window height is greater than 2600 mm")
# mp.get('category', 'Windows')\
# .where('speckle_type',
# 'Objects.Other.Instance:Objects.Other.Revit.RevitInstance')\
# .its('Height')\
# .should('be.greater', 2600) # assert
# def spec_b():
# mp.it("validates SIP 202mm wall type area is greater than 43 m2")
# mp.get("family", "Basic Wall").where("type", "SIP 202mm Wall - conc clad").its(
# "Area"
# ).should("be.greater", 43)
# def spec_c():
# mp.it("checks pipe OmniClass value")
# mp.get("category", "Plumbing Fixtures").its("OmniClass Title").should(
# "have.value", "Bathtubs"
# )
def spec_d():
mp.it("validates basic roof`s thermal mass")
mp.get("family", "Basic Roof").where("type", "SG Metal Panels roof").its(
"Thermal Mass"
).should("be.equal", 20.512)
def spec_e():
mp.it("validates columns assembly type.")
mp.get("family", "M_Concrete-Round-Column with Drop Caps").its(
"Assembly Code"
).should("have.value", "B10")
def spec_f():
mp.it("validates ceiling thickness is 50")
mp.get("category", "Ceilings").where("type", "3000 x 3000mm Grid").its(
"Absorptance"
).should("be.equal", 0.1)
def spec_g():
mp.it("checks there are exactly 55 walls")
mp.get("category", "Walls").should("have.length", 55)