flight 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,26 +17,26 @@ Feature: Flight Committee Calculations
17
17
  And a characteristic "segments_per_trip" of "1"
18
18
  And a characteristic "origin_airport.iata_code" of "AIA"
19
19
  When the "cohort" committee is calculated
20
- Then the conclusion of the committee should have a record with "count" equal to "4"
20
+ Then the conclusion of the committee should have a record with "count" equal to "3"
21
21
 
22
22
  Scenario: Cohort committee for a direct flight from destination
23
23
  Given a flight emitter
24
24
  And a characteristic "segments_per_trip" of "1"
25
25
  And a characteristic "destination_airport.iata_code" of "WEA"
26
26
  When the "cohort" committee is calculated
27
- Then the conclusion of the committee should have a record with "count" equal to "5"
27
+ Then the conclusion of the committee should have a record with "count" equal to "3"
28
28
 
29
29
  Scenario: Cohort committee for a direct flight from aircraft
30
30
  Given a flight emitter
31
31
  And a characteristic "segments_per_trip" of "1"
32
- And a characteristic "aircraft.icao_code" of "FM1"
32
+ And a characteristic "aircraft.bp_code" of "BP-FM1"
33
33
  When the "cohort" committee is calculated
34
34
  Then the conclusion of the committee should have a record with "count" equal to "1"
35
35
 
36
36
  Scenario: Cohort committee for a direct flight from airline
37
37
  Given a flight emitter
38
38
  And a characteristic "segments_per_trip" of "1"
39
- And a characteristic "airline.iata_code" of "IA"
39
+ And a characteristic "airline.iata_code" of "DA"
40
40
  When the "cohort" committee is calculated
41
41
  Then the conclusion of the committee should have a record with "count" equal to "2"
42
42
 
@@ -64,7 +64,7 @@ Feature: Flight Committee Calculations
64
64
  Scenario: Cohort committee for a direct flight with aircraft that exists but is not in t100
65
65
  Given a flight emitter
66
66
  And a characteristic "segments_per_trip" of "1"
67
- And a characteristic "aircraft.icao_code" of "XX3"
67
+ And a characteristic "aircraft.bp_code" of "BP-XX2"
68
68
  When the "cohort" committee is calculated
69
69
  Then the conclusion of the committee should be nil
70
70
 
@@ -81,7 +81,7 @@ Feature: Flight Committee Calculations
81
81
  And a characteristic "origin_airport.iata_code" of "ADA"
82
82
  And a characteristic "destination_airport.iata_code" of "WEA"
83
83
  When the "cohort" committee is calculated
84
- Then the conclusion of the committee should have a record with "count" equal to "1"
84
+ Then the conclusion of the committee should have a record with "count" equal to "2"
85
85
 
86
86
  Scenario: Cohort committee for a direct flight with origin that exists but is not in t100 and destination in t100
87
87
  Given a flight emitter
@@ -98,7 +98,13 @@ Feature: Flight Committee Calculations
98
98
  And a characteristic "destination_airport.iata_code" of "XXX"
99
99
  And a characteristic "airline.iata_code" of "IA"
100
100
  When the "cohort" committee is calculated
101
- Then the conclusion of the committee should have a record with "count" equal to "4"
101
+ Then the conclusion of the committee should have a record with "count" equal to "3"
102
+
103
+ Scenario: Aircraft class committee from aircraft
104
+ Given a flight emitter
105
+ And a characteristic "aircraft.bp_code" of "BP-FM1"
106
+ When the "aircraft_class" committee is calculated
107
+ Then the conclusion of the committee should have "code" of "EX"
102
108
 
103
109
  Scenario: Country committee from origin and destination
104
110
  Given a flight emitter
@@ -115,7 +121,7 @@ Feature: Flight Committee Calculations
115
121
 
116
122
  Scenario: Country committee for international flight
117
123
  Given a flight emitter
118
- And a characteristic "origin_airport.iata_code" of "ADA"
124
+ And a characteristic "origin_airport.iata_code" of "AIA"
119
125
  And a characteristic "destination_airport.iata_code" of "WEA"
120
126
  When the "country" committee is calculated
121
127
  Then the conclusion of the committee should be nil
@@ -138,67 +144,59 @@ Feature: Flight Committee Calculations
138
144
  When the "trips" committee is calculated
139
145
  Then the conclusion of the committee should be "1.941"
140
146
 
141
- Scenario Outline: Freight share committee from cohort
147
+ Scenario: Freight share committee from cohort
142
148
  Given a flight emitter
143
149
  And a characteristic "segments_per_trip" of "1"
144
- And a characteristic "origin_airport.iata_code" of "<origin>"
150
+ And a characteristic "origin_airport.iata_code" of "AIA"
145
151
  When the "cohort" committee is calculated
146
152
  And the "freight_share" committee is calculated
147
153
  Then the committee should have used quorum "from cohort"
148
- And the conclusion of the committee should be "<freight share>"
149
- Examples:
150
- | origin | freight share |
151
- | ADA | 0.0099 |
152
- | AIA | 0.09091 |
154
+ And the conclusion of the committee should be "0.06205"
153
155
 
154
156
  Scenario: Freight share committee from default
155
157
  Given a flight emitter
156
158
  When the "freight_share" committee is calculated
157
159
  Then the committee should have used quorum "default"
158
- And the conclusion of the committee should be "0.06391"
160
+ And the conclusion of the committee should be "0.04313"
159
161
 
160
- Scenario Outline: Load factor committee from cohort
162
+ Scenario: Load factor committee from cohort
161
163
  Given a flight emitter
162
164
  And a characteristic "segments_per_trip" of "1"
163
- And a characteristic "origin_airport.iata_code" of "<origin>"
165
+ And a characteristic "origin_airport.iata_code" of "AIA"
164
166
  When the "cohort" committee is calculated
165
167
  And the "load_factor" committee is calculated
166
168
  Then the committee should have used quorum "from cohort"
167
- And the conclusion of the committee should be "<load_factor>"
168
- Examples:
169
- | origin | load_factor |
170
- | ADA | 0.8 |
171
- | AIA | 0.83333 |
169
+ And the conclusion of the committee should be "0.81197"
172
170
 
173
171
  Scenario: Load factor committee from default
174
172
  Given a flight emitter
175
173
  When the "load_factor" committee is calculated
176
174
  Then the committee should have used quorum "default"
177
- And the conclusion of the committee should be "0.82222"
175
+ And the conclusion of the committee should be "0.81385"
178
176
 
179
177
  Scenario Outline: Seats committee from aircraft with seats
180
178
  Given a flight emitter
181
- And a characteristic "aircraft.icao_code" of "<code>"
179
+ And a characteristic "aircraft.bp_code" of "<code>"
182
180
  When the "seats" committee is calculated
183
181
  Then the committee should have used quorum "from aircraft"
184
182
  And the conclusion of the committee should be "<seats>"
185
183
  Examples:
186
- | code | seats |
187
- | FM1 | 125 |
188
- | BA1 | 120 |
184
+ | code | seats |
185
+ | BP-FM1 | 125.0 |
186
+ | BP-BA1 | 120.0 |
187
+ | BP-XX1 | 130.0 |
189
188
 
190
189
  Scenario Outline: Seats committee from aircraft missing seats
191
190
  Given a flight emitter
192
- And a characteristic "aircraft.icao_code" of "<code>"
191
+ And a characteristic "aircraft.bp_code" of "<code>"
193
192
  When the "seats" committee is calculated
194
193
  Then the committee should have used quorum "default"
195
- And the conclusion of the committee should be "121.6666667"
194
+ And the conclusion of the committee should be "123.0"
196
195
  Examples:
197
- | code |
198
- | XX1 |
199
- | XX2 |
200
- | XX3 |
201
- | XX4 |
196
+ | code |
197
+ | BP-XX2 |
198
+ | BP-XX3 |
199
+ | BP-XX4 |
202
200
 
203
201
  Scenario: Seats committee from seats estimate
204
202
  Given a flight emitter
@@ -207,31 +205,27 @@ Feature: Flight Committee Calculations
207
205
  Then the committee should have used quorum "from seats estimate"
208
206
  And the conclusion of the committee should be "100"
209
207
 
210
- Scenario Outline: Seats committee from cohort
208
+ Scenario: Seats committee from cohort
211
209
  Given a flight emitter
212
210
  And a characteristic "segments_per_trip" of "1"
213
- And a characteristic "origin_airport.iata_code" of "<origin>"
211
+ And a characteristic "origin_airport.iata_code" of "ADA"
214
212
  When the "cohort" committee is calculated
215
213
  And the "seats" committee is calculated
216
214
  Then the committee should have used quorum "from cohort"
217
- And the conclusion of the committee should be "<seats>"
218
- Examples:
219
- | origin | seats |
220
- | ADA | 125 |
221
- | AIA | 120 |
215
+ And the conclusion of the committee should be "122.5"
222
216
 
223
217
  Scenario: Seats committee from aircraft class
224
218
  Given a flight emitter
225
- And a characteristic "aircraft_class.brighter_planet_aircraft_class_code" of "EX"
219
+ And a characteristic "aircraft_class.code" of "EX"
226
220
  When the "seats" committee is calculated
227
221
  Then the committee should have used quorum "from aircraft class"
228
- And the conclusion of the committee should be "121"
222
+ And the conclusion of the committee should be "121.25"
229
223
 
230
224
  Scenario: Seats committee from default
231
225
  Given a flight emitter
232
226
  When the "seats" committee is calculated
233
227
  Then the committee should have used quorum "default"
234
- And the conclusion of the committee should be "121.6666667"
228
+ And the conclusion of the committee should be "123.0"
235
229
 
236
230
  Scenario: Passengers committee from seats and load factor
237
231
  Given a flight emitter
@@ -247,7 +241,7 @@ Feature: Flight Committee Calculations
247
241
 
248
242
  Scenario Outline: Fuel use coefficients committee from aircraft with fuel use coefficients
249
243
  Given a flight emitter
250
- And a characteristic "aircraft.icao_code" of "<code>"
244
+ And a characteristic "aircraft.bp_code" of "<code>"
251
245
  When the "fuel_use_coefficients" committee is calculated
252
246
  Then the committee should have used quorum "from aircraft"
253
247
  And the conclusion of the committee should have a record with "m3" equal to "<m3>"
@@ -255,51 +249,73 @@ Feature: Flight Committee Calculations
255
249
  And the conclusion of the committee should have a record with "m1" equal to "<m1>"
256
250
  And the conclusion of the committee should have a record with "endpoint_fuel" equal to "<b>"
257
251
  Examples:
258
- | code | m3 | m2 | m1 | b |
259
- | FM1 | 0 | 0 | 1 | 0 |
260
- | BA1 | 0 | 0 | 2 | 0 |
261
- | XX2 | 0 | 0 | 3 | 0 |
262
- | XX4 | 0 | 0 | 4 | 0 |
252
+ | code | m3 | m2 | m1 | b |
253
+ | BP-FM1 | 0 | 0 | 1 | 0 |
254
+ | BP-BA1 | 0 | 0 | 2 | 0 |
255
+ | BP-XX2 | 0 | 0 | 4 | 0 |
263
256
 
264
257
  Scenario Outline: Fuel use coefficients committee from aircraft missing fuel use coefficients
265
258
  Given a flight emitter
266
- And a characteristic "aircraft.icao_code" of "<code>"
267
- When the "fuel_use_coefficients" committee is calculated
268
- Then the committee should have used quorum "default"
259
+ And a characteristic "aircraft.bp_code" of "<code>"
260
+ When the "aircraft_class" committee is calculated
261
+ And the "fuel_use_coefficients" committee is calculated
262
+ Then the committee should have used quorum "from aircraft class"
269
263
  And the conclusion of the committee should have a record with "m3" equal to "0"
270
264
  And the conclusion of the committee should have a record with "m2" equal to "0"
271
- And the conclusion of the committee should have a record with "m1" equal to "1.66667"
265
+ And the conclusion of the committee should have a record with "m1" equal to "4"
272
266
  And the conclusion of the committee should have a record with "endpoint_fuel" equal to "0"
273
267
  Examples:
274
- | code |
275
- | XX1 |
276
- | XX3 |
268
+ | code |
269
+ | BP-XX1 |
270
+ | BP-XX3 |
271
+ | BP-XX4 |
277
272
 
278
273
  Scenario: Fuel use coefficients committee from aircraft class
279
274
  Given a flight emitter
280
- And a characteristic "aircraft_class.brighter_planet_aircraft_class_code" of "EX"
275
+ And a characteristic "aircraft_class.code" of "EX"
281
276
  When the "fuel_use_coefficients" committee is calculated
282
277
  Then the committee should have used quorum "from aircraft class"
283
278
  And the conclusion of the committee should have a record with "m3" equal to "0"
284
279
  And the conclusion of the committee should have a record with "m2" equal to "0"
285
- And the conclusion of the committee should have a record with "m1" equal to "1.66667"
280
+ And the conclusion of the committee should have a record with "m1" equal to "1.75"
286
281
  And the conclusion of the committee should have a record with "endpoint_fuel" equal to "0"
287
282
 
288
- Scenario Outline: Fuel use coefficients committee from cohort
283
+ Scenario: Fuel use coefficients committee from cohort where all aircraft have fuel use equation
289
284
  Given a flight emitter
290
285
  And a characteristic "segments_per_trip" of "1"
291
- And a characteristic "origin_airport.iata_code" of "<origin>"
286
+ And a characteristic "origin_airport.iata_code" of "ADA"
292
287
  When the "cohort" committee is calculated
293
288
  And the "fuel_use_coefficients" committee is calculated
294
289
  Then the committee should have used quorum "from cohort"
295
- And the conclusion of the committee should have a record with "m3" equal to "<m3>"
296
- And the conclusion of the committee should have a record with "m2" equal to "<m2>"
297
- And the conclusion of the committee should have a record with "m1" equal to "<m1>"
298
- And the conclusion of the committee should have a record with "endpoint_fuel" equal to "<b>"
299
- Examples:
300
- | origin | m3 | m2 | m1 | b |
301
- | ADA | 0 | 0 | 1 | 0 |
302
- | AIA | 0 | 0 | 2 | 0 |
290
+ And the conclusion of the committee should have a record with "m3" equal to "0"
291
+ And the conclusion of the committee should have a record with "m2" equal to "0"
292
+ And the conclusion of the committee should have a record with "m1" equal to "1.5"
293
+ And the conclusion of the committee should have a record with "endpoint_fuel" equal to "0"
294
+
295
+ Scenario: Fuel use coefficients committee from cohort where some aircraft are missing fuel use equation
296
+ Given a flight emitter
297
+ And a characteristic "segments_per_trip" of "1"
298
+ And a characteristic "origin_airport.iata_code" of "AIA"
299
+ When the "cohort" committee is calculated
300
+ And the "fuel_use_coefficients" committee is calculated
301
+ Then the committee should have used quorum "from cohort"
302
+ And the conclusion of the committee should have a record with "m3" equal to "0"
303
+ And the conclusion of the committee should have a record with "m2" equal to "0"
304
+ And the conclusion of the committee should have a record with "m1" equal to "2.66667"
305
+ And the conclusion of the committee should have a record with "endpoint_fuel" equal to "0"
306
+
307
+ Scenario: Fuel use coefficients committee from cohort where all aircraft are missing fuel use equation
308
+ Given a flight emitter
309
+ And a characteristic "segments_per_trip" of "1"
310
+ And a characteristic "origin_airport.iata_code" of "AIA"
311
+ And a characteristic "airline.iata_code" of "EA"
312
+ When the "cohort" committee is calculated
313
+ And the "fuel_use_coefficients" committee is calculated
314
+ Then the committee should have used quorum "from cohort"
315
+ And the conclusion of the committee should have a record with "m3" equal to "0"
316
+ And the conclusion of the committee should have a record with "m2" equal to "0"
317
+ And the conclusion of the committee should have a record with "m1" equal to "4"
318
+ And the conclusion of the committee should have a record with "endpoint_fuel" equal to "0"
303
319
 
304
320
  Scenario: Fuel use coefficients committee from default
305
321
  Given a flight emitter
@@ -307,7 +323,7 @@ Feature: Flight Committee Calculations
307
323
  Then the committee should have used quorum "default"
308
324
  And the conclusion of the committee should have a record with "m3" equal to "0"
309
325
  And the conclusion of the committee should have a record with "m2" equal to "0"
310
- And the conclusion of the committee should have a record with "m1" equal to "1.66667"
326
+ And the conclusion of the committee should have a record with "m1" equal to "1.4"
311
327
  And the conclusion of the committee should have a record with "endpoint_fuel" equal to "0"
312
328
 
313
329
  Scenario: Dogleg factor committee from segments per trip
@@ -362,46 +378,20 @@ Feature: Flight Committee Calculations
362
378
  Then the committee should have used quorum "from distance class"
363
379
  And the conclusion of the committee should be "100.0"
364
380
 
365
- Scenario Outline: Distance committee from cohort where all distances > 0
366
- Given a flight emitter
367
- And a characteristic "segments_per_trip" of "1"
368
- And a characteristic "origin_airport.iata_code" of "<origin>"
369
- When the "cohort" committee is calculated
370
- And the "distance" committee is calculated
371
- Then the committee should have used quorum "from cohort"
372
- And the conclusion of the committee should be "<distance>"
373
- Examples:
374
- | origin | distance |
375
- | ADA | 100.0 |
376
- | AIA | 1000.0 |
377
-
378
- Scenario Outline: Distance committee from cohort where some distances > 0
381
+ Scenario: Distance committee from cohort
379
382
  Given a flight emitter
380
383
  And a characteristic "segments_per_trip" of "1"
381
- And a characteristic "origin_airport.iata_code" of "<origin>"
384
+ And a characteristic "origin_airport.iata_code" of "ADA"
382
385
  When the "cohort" committee is calculated
383
386
  And the "distance" committee is calculated
384
387
  Then the committee should have used quorum "from cohort"
385
- And the conclusion of the committee should be "<distance>"
386
- Examples:
387
- | origin | distance |
388
- | ADA | 100.0 |
389
- | AIA | 1000.0 |
390
-
391
- Scenario: Distance committee from cohort where all distances = 0
392
- Given a flight emitter
393
- And a characteristic "segments_per_trip" of "1"
394
- And a characteristic "origin_airport.iata_code" of "WEA"
395
- When the "cohort" committee is calculated
396
- And the "distance" committee is calculated
397
- Then the committee should have used quorum "default"
398
- And the conclusion of the committee should be "366.66667"
388
+ And the conclusion of the committee should be "100.0"
399
389
 
400
390
  Scenario: Distance committee from default
401
391
  Given a flight emitter
402
392
  When the "distance" committee is calculated
403
393
  Then the committee should have used quorum "default"
404
- And the conclusion of the committee should be "366.66667"
394
+ And the conclusion of the committee should be "640.0"
405
395
 
406
396
  Scenario: Adjusted distance committee from distance, route inefficiency factor, and dogleg factor
407
397
  Given a flight emitter
@@ -421,7 +411,7 @@ Feature: Flight Committee Calculations
421
411
  Scenario: Fuel per segment committee
422
412
  Given a flight emitter
423
413
  And a characteristic "adjusted_distance_per_segment" of "100"
424
- And a characteristic "aircraft.icao_code" of "BA1"
414
+ And a characteristic "aircraft.bp_code" of "BP-BA1"
425
415
  When the "fuel_use_coefficients" committee is calculated
426
416
  And the "fuel_per_segment" committee is calculated
427
417
  Then the conclusion of the committee should be "200"
@@ -444,31 +434,3 @@ Feature: Flight Committee Calculations
444
434
  When the "fuel_type" committee is calculated
445
435
  And the "emission_factor" committee is calculated
446
436
  Then the conclusion of the committee should be "1.0"
447
-
448
- # Scenario: Emission committee from origin ADA
449
- # Given a flight emitter
450
- # And a characteristic "segments_per_trip" of "1"
451
- # And a characteristic "aircraft.icao_code" of "FM1"
452
- # And a characteristic "date" of "2010-01-01"
453
- # And a characteristic "timeframe" of "2010-01-01/2010-12-31"
454
- # When the "cohort" committee is calculated
455
- # When the "country" committee is calculated
456
- # And the "seat_class_multiplier" committee is calculated
457
- # And the "trips" committee is calculated
458
- # And the "freight_share" committee is calculated
459
- # And the "load_factor" committee is calculated
460
- # And the "seats" committee is calculated
461
- # And the "passengers" committee is calculated
462
- # And the "fuel_type" committee is calculated
463
- # And the "fuel_use_coefficients" committee is calculated
464
- # And the "dogleg_factor" committee is calculated
465
- # And the "route_inefficiency_factor" committee is calculated
466
- # And the "distance" committee is calculated
467
- # And the "adjusted_distance" committee is calculated
468
- # And the "adjusted_distance_per_segment" committee is calculated
469
- # And the "fuel_per_segment" committee is calculated
470
- # And the "fuel" committee is calculated
471
- # And the "aviation_multiplier" committee is calculated
472
- # And the "emission_factor" committee is calculated
473
- # And the "emission" committee is calculated
474
- # Then the conclusion of the committee should be "4.2"
@@ -4,7 +4,7 @@ Feature: Flight Emissions Calculations
4
4
  Scenario: Calculations from default
5
5
  Given a flight has nothing
6
6
  When emissions are calculated
7
- Then the emission value should be within "0.1" kgs of "28.3"
7
+ Then the emission value should be within "0.1" kgs of "42.5"
8
8
 
9
9
  Scenario Outline: Calculations from date
10
10
  Given a flight has "date" of "<date>"
@@ -13,7 +13,7 @@ Feature: Flight Emissions Calculations
13
13
  Examples:
14
14
  | date | emission |
15
15
  | 2009-06-25 | 0.0 |
16
- | 2010-06-25 | 28.3 |
16
+ | 2010-06-25 | 42.5 |
17
17
  | 2011-06-25 | 0.0 |
18
18
 
19
19
  Scenario Outline: Calculations from date and timeframe
@@ -24,20 +24,20 @@ Feature: Flight Emissions Calculations
24
24
  Examples:
25
25
  | date | timeframe | emission |
26
26
  | 2009-06-25 | 2009-01-01/2009-01-31 | 0 |
27
- | 2009-06-25 | 2009-01-01/2009-12-31 | 28.3 |
27
+ | 2009-06-25 | 2009-01-01/2009-12-31 | 42.5 |
28
28
  | 2009-06-25 | 2009-12-01/2009-12-31 | 0 |
29
29
 
30
30
  Scenario: Calculations from cohort based on origin
31
31
  Given a flight has "segments_per_trip" of "1"
32
32
  And it has "origin_airport.iata_code" of "ADA"
33
33
  When emissions are calculated
34
- Then the emission value should be within "0.1" kgs of "4.2"
34
+ Then the emission value should be within "0.1" kgs of "6.3"
35
35
 
36
36
  Scenario: Calculations from cohort based on destination
37
37
  Given a flight has "segments_per_trip" of "1"
38
38
  And it has "destination_airport.iata_code" of "AIA"
39
39
  When emissions are calculated
40
- Then the emission value should be within "0.1" kgs of "24.4"
40
+ Then the emission value should be within "0.1" kgs of "36.6"
41
41
 
42
42
  Scenario: Calculations from cohort based on aircraft
43
43
  Given a flight has "segments_per_trip" of "1"
@@ -49,59 +49,59 @@ Feature: Flight Emissions Calculations
49
49
  Given a flight has "segments_per_trip" of "1"
50
50
  And it has "airline.iata_code" of "DA"
51
51
  When emissions are calculated
52
- Then the emission value should be within "0.1" kgs of "4.2"
52
+ Then the emission value should be within "0.1" kgs of "6.3"
53
53
 
54
54
  Scenario: Calculations from segments per trip
55
55
  Given a flight has "segments_per_trip" of "2"
56
56
  When emissions are calculated
57
- Then the emission value should be within "0.1" kgs of "30.5"
57
+ Then the emission value should be within "0.1" kgs of "45.8"
58
58
 
59
59
  Scenario: Calculations from seat class
60
60
  Given a flight has "seat_class.name" of "economy"
61
61
  When emissions are calculated
62
- Then the emission value should be within "0.1" kgs of "25.5"
62
+ Then the emission value should be within "0.1" kgs of "38.2"
63
63
 
64
64
  Scenario: Calculations from trips
65
65
  Given a flight has "trips" of "2"
66
66
  When emissions are calculated
67
- Then the emission value should be within "0.1" kgs of "29.2"
67
+ Then the emission value should be within "0.1" kgs of "43.8"
68
68
 
69
69
  Scenario: Calculations from load factor
70
70
  Given a flight has "load_factor" of "1"
71
71
  When emissions are calculated
72
- Then the emission value should be within "0.1" kgs of "23.2"
72
+ Then the emission value should be within "0.1" kgs of "34.5"
73
73
 
74
74
  Scenario: Calculations from seats estimate
75
75
  Given a flight has "seats_estimate" of "100"
76
76
  When emissions are calculated
77
- Then the emission value should be within "0.1" kgs of "34.6"
77
+ Then the emission value should be within "0.1" kgs of "52.4"
78
78
 
79
79
  Scenario: Calculations from aircraft class
80
- Given a flight has "aircraft_class.brighter_planet_aircraft_class_code" of "BX"
80
+ Given a flight has "aircraft_class.code" of "BX"
81
81
  When emissions are calculated
82
- Then the emission value should be within "0.1" kgs of "41.5"
82
+ Then the emission value should be within "0.1" kgs of "114.5"
83
83
 
84
84
  Scenario: Calculations from country
85
85
  Given a flight has "country.iso_3166_code" of "UK"
86
86
  When emissions are calculated
87
- Then the emission value should be within "0.1" kgs of "30.9"
87
+ Then the emission value should be within "0.1" kgs of "46.3"
88
88
 
89
89
  Scenario: Calculations from distance estimate
90
90
  Given a flight has "distance_estimate" of "185.2"
91
91
  When emissions are calculated
92
- Then the emission value should be within "0.1" kgs of "7.7"
92
+ Then the emission value should be within "0.1" kgs of "6.6"
93
93
 
94
94
  Scenario: Calculations from distance class
95
95
  Given a flight has "distance_class.name" of "petite"
96
96
  When emissions are calculated
97
- Then the emission value should be within "0.1" kgs of "7.7"
97
+ Then the emission value should be within "0.1" kgs of "6.6"
98
98
 
99
99
  Scenario: Calculations from aviation multiplier
100
100
  Given a flight has "aviation_multiplier" of "1"
101
101
  When emissions are calculated
102
- Then the emission value should be within "0.1" kgs of "14.2"
102
+ Then the emission value should be within "0.1" kgs of "21.2"
103
103
 
104
104
  Scenario: Calculations from fuel type
105
105
  Given a flight has "fuel_type.name" of "Aviation Gasoline"
106
106
  When emissions are calculated
107
- Then the emission value should be within "0.1" kgs of "56.7"
107
+ Then the emission value should be within "0.1" kgs of "85.0"