Skip to content

Commit baae898

Browse files
committed
test: Adjust to changes in stats_summary
1 parent c239fc6 commit baae898

File tree

6 files changed

+332
-882
lines changed

6 files changed

+332
-882
lines changed

test/expected/01_load_web_examples.out

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2867,18 +2867,6 @@ unit_type | establishment
28672867
count | 1305
28682868
invalid_codes | [{"primary_activity_category_code": "00.000"}]
28692869
stats_summary | { +
2870-
| "employees": { +
2871-
| "max": 1840, +
2872-
| "min": 5, +
2873-
| "sum": 23800, +
2874-
| "mean": 67.81, +
2875-
| "type": "number", +
2876-
| "count": 351, +
2877-
| "stddev": 166.99, +
2878-
| "variance": 27884.99, +
2879-
| "sum_sq_diff": 9759746.83, +
2880-
| "coefficient_of_variation_pct": 246.27+
2881-
| } +
28822870
| }
28832871
-[ RECORD 2 ]-+-----------------------------------------------
28842872
unit_type | legal_unit

test/expected/02_load_establishment_without_legal_unit.out

Lines changed: 5 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ name | GRAPHICS BY MIA
131131
external_idents | {"tax_ident": "825481982"}
132132
data_source_codes | {brreg}
133133
stats | {}
134-
stats_summary | { +
135-
| }
134+
stats_summary |
136135
-[ RECORD 2 ]-----+---------------------------------------------
137136
unit_type | enterprise
138137
name | GRAPHICS BY MIA
@@ -147,20 +146,7 @@ name | KRAN & SPESIALLØFT AS
147146
external_idents | {"tax_ident": "895406732"}
148147
data_source_codes | {brreg}
149148
stats | {"employees": 19}
150-
stats_summary | { +
151-
| "employees": { +
152-
| "max": 19, +
153-
| "min": 19, +
154-
| "sum": 19, +
155-
| "mean": 19, +
156-
| "type": "number", +
157-
| "count": 1, +
158-
| "stddev": 0, +
159-
| "variance": 0, +
160-
| "sum_sq_diff": 0, +
161-
| "coefficient_of_variation_pct": 0 +
162-
| } +
163-
| }
149+
stats_summary |
164150
-[ RECORD 4 ]-----+---------------------------------------------
165151
unit_type | enterprise
166152
name | KRAN & SPESIALLØFT AS
@@ -187,8 +173,7 @@ name | NETT & EL TEKNIKK AS
187173
external_idents | {"tax_ident": "819097232"}
188174
data_source_codes | {brreg}
189175
stats | {}
190-
stats_summary | { +
191-
| }
176+
stats_summary |
192177
-[ RECORD 6 ]-----+---------------------------------------------
193178
unit_type | enterprise
194179
name | NETT & EL TEKNIKK AS
@@ -203,20 +188,7 @@ name | NORSVIN SA TESTESTASJON DELTA
203188
external_idents | {"tax_ident": "873124032"}
204189
data_source_codes | {brreg}
205190
stats | {"employees": 16}
206-
stats_summary | { +
207-
| "employees": { +
208-
| "max": 16, +
209-
| "min": 16, +
210-
| "sum": 16, +
211-
| "mean": 16, +
212-
| "type": "number", +
213-
| "count": 1, +
214-
| "stddev": 0, +
215-
| "variance": 0, +
216-
| "sum_sq_diff": 0, +
217-
| "coefficient_of_variation_pct": 0 +
218-
| } +
219-
| }
191+
stats_summary |
220192
-[ RECORD 8 ]-----+---------------------------------------------
221193
unit_type | enterprise
222194
name | NORSVIN SA TESTESTASJON DELTA
@@ -243,20 +215,7 @@ name | VIKEDAL LEGEKONTOR
243215
external_idents | {"tax_ident": "911856174"}
244216
data_source_codes | {brreg}
245217
stats | {"employees": 5}
246-
stats_summary | { +
247-
| "employees": { +
248-
| "max": 5, +
249-
| "min": 5, +
250-
| "sum": 5, +
251-
| "mean": 5, +
252-
| "type": "number", +
253-
| "count": 1, +
254-
| "stddev": 0, +
255-
| "variance": 0, +
256-
| "sum_sq_diff": 0, +
257-
| "coefficient_of_variation_pct": 0 +
258-
| } +
259-
| }
218+
stats_summary |
260219
-[ RECORD 10 ]----+---------------------------------------------
261220
unit_type | enterprise
262221
name | VIKEDAL LEGEKONTOR
@@ -291,18 +250,6 @@ unit_type | establishment
291250
distinct_unit_count | 5
292251
invalid_codes |
293252
stats_summary | { +
294-
| "employees": { +
295-
| "max": 19, +
296-
| "min": 5, +
297-
| "sum": 40, +
298-
| "mean": 13.33, +
299-
| "type": "number", +
300-
| "count": 3, +
301-
| "stddev": 7.37, +
302-
| "variance": 54.33, +
303-
| "sum_sq_diff": 108.67, +
304-
| "coefficient_of_variation_pct": 55.28+
305-
| } +
306253
| }
307254
-[ RECORD 2 ]-------+----------------------------------------------
308255
unit_type | enterprise

0 commit comments

Comments
 (0)