Skip to content

Commit b846eee

Browse files
committed
un-skip dbt tests
1 parent f198163 commit b846eee

File tree

2 files changed

+49
-49
lines changed

2 files changed

+49
-49
lines changed

models/marts/schema.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ models:
1515
tests:
1616
- not_null
1717

18-
# - name: total_readings
19-
# description: "Total number of readings for the machine"
20-
# tests:
21-
# - not_null
22-
# - dbt_utils.accepted_range:
23-
# min_value: 0
18+
- name: total_readings
19+
description: "Total number of readings for the machine"
20+
tests:
21+
- not_null
22+
- dbt_utils.accepted_range:
23+
min_value: 0
2424

25-
# - name: anomalous_readings
26-
# description: "Count of anomalous readings"
27-
# tests:
28-
# - not_null
25+
- name: anomalous_readings
26+
description: "Count of anomalous readings"
27+
tests:
28+
- not_null
2929

30-
# - name: avg_temperature
31-
# description: "Average temperature reading"
32-
# tests:
33-
# - not_null
34-
# - dbt_utils.accepted_range:
35-
# min_value: -50
36-
# max_value: 150
30+
- name: avg_temperature
31+
description: "Average temperature reading"
32+
tests:
33+
- not_null
34+
- dbt_utils.accepted_range:
35+
min_value: -50
36+
max_value: 150
3737

3838
- name: max_vibration
3939
description: "Maximum vibration reading"
@@ -51,24 +51,24 @@ models:
5151
min_value: 0
5252
max_value: 100
5353

54-
# - name: failure_risk_score
55-
# description: "Calculated risk score for machine failure (0-100)"
56-
# tests:
57-
# - not_null
58-
# - dbt_utils.accepted_range:
59-
# min_value: 0
60-
# max_value: 100
54+
- name: failure_risk_score
55+
description: "Calculated risk score for machine failure (0-100)"
56+
tests:
57+
- not_null
58+
- dbt_utils.accepted_range:
59+
min_value: 0
60+
max_value: 100
6161

62-
# - name: health_status
63-
# description: "Current health status of the machine"
64-
# tests:
65-
# - not_null
66-
# - accepted_values:
67-
# values: ['HEALTHY', 'NEEDS_MAINTENANCE', 'CRITICAL']
62+
- name: health_status
63+
description: "Current health status of the machine"
64+
tests:
65+
- not_null
66+
- accepted_values:
67+
values: ['HEALTHY', 'NEEDS_MAINTENANCE', 'CRITICAL']
6868

69-
# - name: maintenance_recommendation
70-
# description: "Recommended maintenance action"
71-
# tests:
72-
# - not_null
73-
# - accepted_values:
74-
# values: ['No action needed', 'Schedule maintenance within 48 hours', 'Immediate maintenance required']
69+
- name: maintenance_recommendation
70+
description: "Recommended maintenance action"
71+
tests:
72+
- not_null
73+
- accepted_values:
74+
values: ['No action needed', 'Schedule maintenance within 48 hours', 'Immediate maintenance required']

models/staging/schema.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ models:
3838
min_value: 0
3939
max_value: 500
4040

41-
# - name: reading_status
42-
# description: "Status of the sensor reading"
43-
# tests:
44-
# - not_null
45-
# - accepted_values:
46-
# values: ['normal', 'anomalous', 'invalid']
41+
- name: reading_status
42+
description: "Status of the sensor reading"
43+
tests:
44+
- not_null
45+
- accepted_values:
46+
values: ['normal', 'anomalous', 'invalid']
4747

48-
# - name: signal_strength
49-
# description: "Signal strength of the sensor"
50-
# tests:
51-
# - not_null
52-
# - dbt_utils.accepted_range:
53-
# min_value: 0
54-
# max_value: 100
48+
- name: signal_strength
49+
description: "Signal strength of the sensor"
50+
tests:
51+
- not_null
52+
- dbt_utils.accepted_range:
53+
min_value: 0
54+
max_value: 100

0 commit comments

Comments
 (0)