-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.vw_pin_appeal.yml
77 lines (74 loc) · 2.91 KB
/
default.vw_pin_appeal.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
models:
- name: default.vw_pin_appeal
description: '{{ doc("view_vw_pin_appeal") }}'
columns:
- name: agent_code
description: '{{ doc("shared_column_agent_code") }}'
- name: agent_name
description: '{{ doc("shared_column_agent_name") }}'
- name: appeal_type
description: '{{ doc("shared_column_appeal_type") }}'
- name: case_no
description: '{{ doc("shared_column_case_no") }}'
- name: certified_bldg
description: '{{ doc("shared_column_certified_bldg") }}'
- name: certified_land
description: '{{ doc("shared_column_certified_land") }}'
- name: certified_tot
description: '{{ doc("shared_column_certified_tot") }}'
- name: change
description: '{{ doc("shared_column_appeal_change") }}'
- name: class
description: '{{ doc("shared_column_class") }}'
- name: mailed_bldg
description: '{{ doc("shared_column_mailed_bldg") }}'
- name: mailed_land
description: '{{ doc("shared_column_mailed_land") }}'
- name: mailed_tot
description: '{{ doc("shared_column_mailed_tot") }}'
- name: pin
description: '{{ doc("shared_column_pin") }}'
- name: reason_code1
description: '{{ doc("shared_column_reason_code") }}'
- name: reason_code2
description: '{{ doc("shared_column_reason_code") }}'
- name: reason_code3
description: '{{ doc("shared_column_reason_code") }}'
- name: status
description: '{{ doc("shared_column_appeal_status") }}'
- name: township_code
description: '{{ doc("shared_column_township_code") }}'
- name: year
description: '{{ doc("shared_column_year") }}'
data_tests:
- row_count:
name: default_vw_pin_appeal_row_count
above: 8815299 # as of 2024-11-14
unit_tests:
- name: default_vw_pin_appeal_class_strips_non_alphanumerics
description: class transformation should remove non-alphanumeric characters
model: default.vw_pin_appeal
given:
- input: source("iasworld", "pardat")
rows:
# `class` is the important column here, and all other columns are
# only set to ensure proper joins when creating the dummy tables
- {parid: "123", taxyr: "2024", cur: "Y", deactivat: null, class: "2.1-1)A"}
- input: source("iasworld", "htpar")
rows:
- {parid: "123", taxyr: "2024", cur: "Y", deactivat: null, cpatty: "1", caseno: "1"}
- input: source("iasworld", "legdat")
rows:
- {parid: "123", taxyr: "2024", cur: "Y", deactivat: null}
- input: ref("default.vw_pin_value")
rows:
- {pin: "123", year: "2024"}
- input: source("iasworld", "htagnt")
rows:
- {agent: "1", cur: "Y", deactivat: null}
- input: ref("ccao.htpar_reascd")
rows:
- {reascd: "28"}
expect:
rows:
- {class: "211A"}