earth 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/earth.gemspec +1 -1
  2. data/features/automobile_fuel.feature +144 -144
  3. data/features/automobile_make.feature +24 -24
  4. data/features/automobile_make_fleet_year.feature +34 -34
  5. data/features/automobile_make_model.feature +24 -24
  6. data/features/automobile_make_model_year.feature +34 -34
  7. data/features/automobile_make_model_year_variant.feature +46 -46
  8. data/features/automobile_make_year.feature +34 -34
  9. data/features/automobile_size_class.feature +59 -59
  10. data/features/automobile_size_class_year.feature +34 -34
  11. data/features/automobile_type_fuel_age.feature +55 -55
  12. data/features/automobile_type_fuel_control.feature +34 -34
  13. data/features/automobile_type_fuel_year.feature +124 -124
  14. data/features/automobile_type_fuel_year_age.feature +94 -94
  15. data/features/automobile_type_fuel_year_control.feature +74 -74
  16. data/features/automobile_type_year.feature +64 -64
  17. data/features/bus_class.feature +39 -39
  18. data/features/bus_fuel.feature +114 -114
  19. data/features/carrier.feature +64 -64
  20. data/features/carrier_mode.feature +64 -64
  21. data/features/computation_carrier.feature +14 -14
  22. data/features/computation_carrier_instance_class.feature +24 -24
  23. data/features/egrid_region.feature +20 -20
  24. data/features/egrid_subregion.feature +134 -134
  25. data/features/fuel_year.feature +54 -54
  26. data/features/greenhouse_gas.feature +44 -44
  27. data/features/rail_class.feature +64 -64
  28. data/features/shipment_mode.feature +34 -34
  29. data/lib/earth/air.rb +1 -0
  30. data/lib/earth/air/data_miner.rb +1 -0
  31. data/lib/earth/air/flight_distance_class.rb +10 -0
  32. data/lib/earth/air/flight_distance_class/data_miner.rb +18 -2
  33. data/lib/earth/air/flight_distance_class_seat_class.rb +10 -0
  34. data/lib/earth/air/flight_distance_class_seat_class/data_miner.rb +13 -0
  35. data/lib/earth/air/flight_seat_class.rb +6 -5
  36. data/lib/earth/air/flight_seat_class/data_miner.rb +18 -6
  37. data/lib/earth/version.rb +1 -1
  38. data/spec/earth_spec.rb +2 -2
  39. metadata +187 -173
@@ -1,64 +1,64 @@
1
- Feature: Data import for Carrier
2
- As a data user
3
- I want to import Carrier data
4
- So that I can perform carrier-based calculations
5
-
6
- Scenario: Successfully verifying that package volume > 0
7
- Given a "Carrier" data import fetches results listed in "carrier_good"
8
- When a data import verifies "Package volume should be greater than zero"
9
- Then the verification should be successful
10
-
11
- Scenario: Failing to verify that package volume > 0
12
- Given a "Carrier" data import fetches results listed in "carrier_bad"
13
- When a data import verifies "Package volume should be greater than zero"
14
- Then the verification should not be successful
15
-
16
- Scenario: Successfully verifying that route inefficiency factor >= 1
17
- Given a "Carrier" data import fetches results listed in "carrier_good"
18
- When a data import verifies "Route inefficiency factor should be one or more"
19
- Then the verification should be successful
20
-
21
- Scenario: Failing to verify that route inefficiency factor >= 1
22
- Given a "Carrier" data import fetches results listed in "carrier_bad"
23
- When a data import verifies "Route inefficiency factor should be one or more"
24
- Then the verification should not be successful
25
-
26
- Scenario: Successfully verifying that transport emission factor > 0
27
- Given a "Carrier" data import fetches results listed in "carrier_good"
28
- When a data import verifies "Transport emission factor should be greater than zero"
29
- Then the verification should be successful
30
-
31
- Scenario: Failing to verify that transport emission factor > 0
32
- Given a "Carrier" data import fetches results listed in "carrier_bad"
33
- When a data import verifies "Transport emission factor should be greater than zero"
34
- Then the verification should not be successful
35
-
36
- Scenario: Successfully verifying that transport emission factor units is never missing
37
- Given a "Carrier" data import fetches results listed in "carrier_good"
38
- When a data import verifies "Transport emission factor units should never be missing"
39
- Then the verification should be successful
40
-
41
- Scenario: Failing to verify that transport emission factor units is never missing
42
- Given a "Carrier" data import fetches results listed in "carrier_bad"
43
- When a data import verifies "Transport emission factor units should never be missing"
44
- Then the verification should not be successful
45
-
46
- Scenario: Successfully verifying that corporate emission factor > 0
47
- Given a "Carrier" data import fetches results listed in "carrier_good"
48
- When a data import verifies "Corporate emission factor should be greater than zero"
49
- Then the verification should be successful
50
-
51
- Scenario: Failing to verify that corporate emission factor > 0
52
- Given a "Carrier" data import fetches results listed in "carrier_bad"
53
- When a data import verifies "Corporate emission factor should be greater than zero"
54
- Then the verification should not be successful
55
-
56
- Scenario: Successfully verifying that corporate emission factor units is never missing
57
- Given a "Carrier" data import fetches results listed in "carrier_good"
58
- When a data import verifies "Corporate emission factor units should never be missing"
59
- Then the verification should be successful
60
-
61
- Scenario: Failing to verify that corporate emission factor units is never missing
62
- Given a "Carrier" data import fetches results listed in "carrier_bad"
63
- When a data import verifies "Corporate emission factor units should never be missing"
64
- Then the verification should not be successful
1
+ # Feature: Data import for Carrier
2
+ # As a data user
3
+ # I want to import Carrier data
4
+ # So that I can perform carrier-based calculations
5
+ #
6
+ # Scenario: Successfully verifying that package volume > 0
7
+ # Given a "Carrier" data import fetches results listed in "carrier_good"
8
+ # When a data import verifies "Package volume should be greater than zero"
9
+ # Then the verification should be successful
10
+ #
11
+ # Scenario: Failing to verify that package volume > 0
12
+ # Given a "Carrier" data import fetches results listed in "carrier_bad"
13
+ # When a data import verifies "Package volume should be greater than zero"
14
+ # Then the verification should not be successful
15
+ #
16
+ # Scenario: Successfully verifying that route inefficiency factor >= 1
17
+ # Given a "Carrier" data import fetches results listed in "carrier_good"
18
+ # When a data import verifies "Route inefficiency factor should be one or more"
19
+ # Then the verification should be successful
20
+ #
21
+ # Scenario: Failing to verify that route inefficiency factor >= 1
22
+ # Given a "Carrier" data import fetches results listed in "carrier_bad"
23
+ # When a data import verifies "Route inefficiency factor should be one or more"
24
+ # Then the verification should not be successful
25
+ #
26
+ # Scenario: Successfully verifying that transport emission factor > 0
27
+ # Given a "Carrier" data import fetches results listed in "carrier_good"
28
+ # When a data import verifies "Transport emission factor should be greater than zero"
29
+ # Then the verification should be successful
30
+ #
31
+ # Scenario: Failing to verify that transport emission factor > 0
32
+ # Given a "Carrier" data import fetches results listed in "carrier_bad"
33
+ # When a data import verifies "Transport emission factor should be greater than zero"
34
+ # Then the verification should not be successful
35
+ #
36
+ # Scenario: Successfully verifying that transport emission factor units is never missing
37
+ # Given a "Carrier" data import fetches results listed in "carrier_good"
38
+ # When a data import verifies "Transport emission factor units should never be missing"
39
+ # Then the verification should be successful
40
+ #
41
+ # Scenario: Failing to verify that transport emission factor units is never missing
42
+ # Given a "Carrier" data import fetches results listed in "carrier_bad"
43
+ # When a data import verifies "Transport emission factor units should never be missing"
44
+ # Then the verification should not be successful
45
+ #
46
+ # Scenario: Successfully verifying that corporate emission factor > 0
47
+ # Given a "Carrier" data import fetches results listed in "carrier_good"
48
+ # When a data import verifies "Corporate emission factor should be greater than zero"
49
+ # Then the verification should be successful
50
+ #
51
+ # Scenario: Failing to verify that corporate emission factor > 0
52
+ # Given a "Carrier" data import fetches results listed in "carrier_bad"
53
+ # When a data import verifies "Corporate emission factor should be greater than zero"
54
+ # Then the verification should not be successful
55
+ #
56
+ # Scenario: Successfully verifying that corporate emission factor units is never missing
57
+ # Given a "Carrier" data import fetches results listed in "carrier_good"
58
+ # When a data import verifies "Corporate emission factor units should never be missing"
59
+ # Then the verification should be successful
60
+ #
61
+ # Scenario: Failing to verify that corporate emission factor units is never missing
62
+ # Given a "Carrier" data import fetches results listed in "carrier_bad"
63
+ # When a data import verifies "Corporate emission factor units should never be missing"
64
+ # Then the verification should not be successful
@@ -1,64 +1,64 @@
1
- Feature: Data import for CarrierMode
2
- As a data user
3
- I want to import CarrierMode data
4
- So that I can perform carrier mode-based calculations
5
-
6
- Scenario: Successfully verifying that carrier name is never missing
7
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
8
- When a data import verifies "Carrier name should never be missing"
9
- Then the verification should be successful
10
-
11
- Scenario: Failing to verify that carrier name is never missing
12
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
13
- When a data import verifies "Carrier name should never be missing"
14
- Then the verification should not be successful
15
-
16
- Scenario: Successfully verifying that mode name is never missing
17
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
18
- When a data import verifies "Mode name should never be missing"
19
- Then the verification should be successful
20
-
21
- Scenario: Failing to verify that mode name is never missing
22
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
23
- When a data import verifies "Mode name should never be missing"
24
- Then the verification should not be successful
25
-
26
- Scenario: Successfully verifying that transport emission factor units is never missing
27
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
28
- When a data import verifies "Transport emission factor units should never be missing"
29
- Then the verification should be successful
30
-
31
- Scenario: Failing to verify that transport emission factor units is never missing
32
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
33
- When a data import verifies "Transport emission factor units should never be missing"
34
- Then the verification should not be successful
35
-
36
- Scenario: Successfully verifying that package volume > 0
37
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
38
- When a data import verifies "Package volume should be greater than zero"
39
- Then the verification should be successful
40
-
41
- Scenario: Failing to verify that package volume > 0
42
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
43
- When a data import verifies "Package volume should be greater than zero"
44
- Then the verification should not be successful
45
-
46
- Scenario: Successfully verifying that transport emission factor > 0
47
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
48
- When a data import verifies "Transport emission factor should be greater than zero"
49
- Then the verification should be successful
50
-
51
- Scenario: Failing to verify that transport emission factor > 0
52
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
53
- When a data import verifies "Transport emission factor should be greater than zero"
54
- Then the verification should not be successful
55
-
56
- Scenario: Successfully verifying that route inefficiency factor >= 1
57
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
58
- When a data import verifies "Route inefficiency factor should be one or more"
59
- Then the verification should be successful
60
-
61
- Scenario: Failing to verify that route inefficiency factor >= 1
62
- Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
63
- When a data import verifies "Route inefficiency factor should be one or more"
64
- Then the verification should not be successful
1
+ # Feature: Data import for CarrierMode
2
+ # As a data user
3
+ # I want to import CarrierMode data
4
+ # So that I can perform carrier mode-based calculations
5
+ #
6
+ # Scenario: Successfully verifying that carrier name is never missing
7
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
8
+ # When a data import verifies "Carrier name should never be missing"
9
+ # Then the verification should be successful
10
+ #
11
+ # Scenario: Failing to verify that carrier name is never missing
12
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
13
+ # When a data import verifies "Carrier name should never be missing"
14
+ # Then the verification should not be successful
15
+ #
16
+ # Scenario: Successfully verifying that mode name is never missing
17
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
18
+ # When a data import verifies "Mode name should never be missing"
19
+ # Then the verification should be successful
20
+ #
21
+ # Scenario: Failing to verify that mode name is never missing
22
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
23
+ # When a data import verifies "Mode name should never be missing"
24
+ # Then the verification should not be successful
25
+ #
26
+ # Scenario: Successfully verifying that transport emission factor units is never missing
27
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
28
+ # When a data import verifies "Transport emission factor units should never be missing"
29
+ # Then the verification should be successful
30
+ #
31
+ # Scenario: Failing to verify that transport emission factor units is never missing
32
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
33
+ # When a data import verifies "Transport emission factor units should never be missing"
34
+ # Then the verification should not be successful
35
+ #
36
+ # Scenario: Successfully verifying that package volume > 0
37
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
38
+ # When a data import verifies "Package volume should be greater than zero"
39
+ # Then the verification should be successful
40
+ #
41
+ # Scenario: Failing to verify that package volume > 0
42
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
43
+ # When a data import verifies "Package volume should be greater than zero"
44
+ # Then the verification should not be successful
45
+ #
46
+ # Scenario: Successfully verifying that transport emission factor > 0
47
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
48
+ # When a data import verifies "Transport emission factor should be greater than zero"
49
+ # Then the verification should be successful
50
+ #
51
+ # Scenario: Failing to verify that transport emission factor > 0
52
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
53
+ # When a data import verifies "Transport emission factor should be greater than zero"
54
+ # Then the verification should not be successful
55
+ #
56
+ # Scenario: Successfully verifying that route inefficiency factor >= 1
57
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_good"
58
+ # When a data import verifies "Route inefficiency factor should be one or more"
59
+ # Then the verification should be successful
60
+ #
61
+ # Scenario: Failing to verify that route inefficiency factor >= 1
62
+ # Given a "CarrierMode" data import fetches results listed in "carrier_mode_bad"
63
+ # When a data import verifies "Route inefficiency factor should be one or more"
64
+ # Then the verification should not be successful
@@ -1,14 +1,14 @@
1
- Feature: Data import for ComputationCarrier
2
- As a data user
3
- I want to import ComputationCarrier data
4
- So that I can perform computation carrier-based calculations
5
-
6
- Scenario: Successfully verifying that power usage effectiveness >= 1.0
7
- Given a "ComputationCarrier" data import fetches results listed in "computation_carrier_good"
8
- When a data import verifies "Power usage effectiveness should be one or more"
9
- Then the verification should be successful
10
-
11
- Scenario: Failing to verify that power usage effectiveness >= 1.0
12
- Given a "ComputationCarrier" data import fetches results listed in "computation_carrier_bad"
13
- When a data import verifies "Power usage effectiveness should be one or more"
14
- Then the verification should not be successful
1
+ # Feature: Data import for ComputationCarrier
2
+ # As a data user
3
+ # I want to import ComputationCarrier data
4
+ # So that I can perform computation carrier-based calculations
5
+ #
6
+ # Scenario: Successfully verifying that power usage effectiveness >= 1.0
7
+ # Given a "ComputationCarrier" data import fetches results listed in "computation_carrier_good"
8
+ # When a data import verifies "Power usage effectiveness should be one or more"
9
+ # Then the verification should be successful
10
+ #
11
+ # Scenario: Failing to verify that power usage effectiveness >= 1.0
12
+ # Given a "ComputationCarrier" data import fetches results listed in "computation_carrier_bad"
13
+ # When a data import verifies "Power usage effectiveness should be one or more"
14
+ # Then the verification should not be successful
@@ -1,24 +1,24 @@
1
- Feature: Data import for ComputationCarrierInstanceClass
2
- As a data user
3
- I want to import ComputationCarrierInstanceClass data
4
- So that I can perform computation carrier instance class-based calculations
5
-
6
- Scenario: Successfully verifying that electricity intensity is more than zero
7
- Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_good"
8
- When a data import verifies "Electricity intensity should be more than zero"
9
- Then the verification should be successful
10
-
11
- Scenario: Successfully verifying that electricity intensity units are kilowatts
12
- Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_good"
13
- When a data import verifies "Electricity intensity units should be kilowatts"
14
- Then the verification should be successful
15
-
16
- Scenario: Failing to verify that electricity intensity is more than zero
17
- Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_bad"
18
- When a data import verifies "Electricity intensity should be more than zero"
19
- Then the verification should not be successful
20
-
21
- Scenario: Failing to verify that electricity intensity units are kilowatts
22
- Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_bad"
23
- When a data import verifies "Electricity intensity units should be kilowatts"
24
- Then the verification should not be successful
1
+ # Feature: Data import for ComputationCarrierInstanceClass
2
+ # As a data user
3
+ # I want to import ComputationCarrierInstanceClass data
4
+ # So that I can perform computation carrier instance class-based calculations
5
+ #
6
+ # Scenario: Successfully verifying that electricity intensity is more than zero
7
+ # Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_good"
8
+ # When a data import verifies "Electricity intensity should be more than zero"
9
+ # Then the verification should be successful
10
+ #
11
+ # Scenario: Successfully verifying that electricity intensity units are kilowatts
12
+ # Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_good"
13
+ # When a data import verifies "Electricity intensity units should be kilowatts"
14
+ # Then the verification should be successful
15
+ #
16
+ # Scenario: Failing to verify that electricity intensity is more than zero
17
+ # Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_bad"
18
+ # When a data import verifies "Electricity intensity should be more than zero"
19
+ # Then the verification should not be successful
20
+ #
21
+ # Scenario: Failing to verify that electricity intensity units are kilowatts
22
+ # Given a "ComputationCarrierInstanceClass" data import fetches results listed in "computation_carrier_instance_class_bad"
23
+ # When a data import verifies "Electricity intensity units should be kilowatts"
24
+ # Then the verification should not be successful
@@ -1,20 +1,20 @@
1
- Feature: Data import for EgridRegion
2
- As a data user
3
- I want to import EgridRegion data
4
- So that I can perform eGRID region-based calculations
5
-
6
- Scenario: Successfully verifying that loss factor is greater than zero and less than one
7
- Given a "EgridRegion" data import fetches results listed in "egrid_region_good"
8
- When a data import verifies "Loss factor should be greater than zero and less than one"
9
- Then the verification should be successful
10
-
11
- # FIXME TODO get this to work
12
- # Scenario: Successfully verifying that fallback loss factor is greater than zero and less than one
13
- # Given a "EgridRegion" data import fetches results listed in "egrid_region_good"
14
- # When a data import verifies "Fallback loss factor should be greater than zero and less than one"
15
- # Then the verification should be successful
16
-
17
- Scenario: Failing to verify that loss factor is greater than zero and less than one
18
- Given a "EgridRegion" data import fetches results listed in "egrid_region_bad"
19
- When a data import verifies "Loss factor should be greater than zero and less than one"
20
- Then the verification should not be successful
1
+ # Feature: Data import for EgridRegion
2
+ # As a data user
3
+ # I want to import EgridRegion data
4
+ # So that I can perform eGRID region-based calculations
5
+ #
6
+ # Scenario: Successfully verifying that loss factor is greater than zero and less than one
7
+ # Given a "EgridRegion" data import fetches results listed in "egrid_region_good"
8
+ # When a data import verifies "Loss factor should be greater than zero and less than one"
9
+ # Then the verification should be successful
10
+ #
11
+ # # FIXME TODO get this to work
12
+ # # Scenario: Successfully verifying that fallback loss factor is greater than zero and less than one
13
+ # # Given a "EgridRegion" data import fetches results listed in "egrid_region_good"
14
+ # # When a data import verifies "Fallback loss factor should be greater than zero and less than one"
15
+ # # Then the verification should be successful
16
+ #
17
+ # Scenario: Failing to verify that loss factor is greater than zero and less than one
18
+ # Given a "EgridRegion" data import fetches results listed in "egrid_region_bad"
19
+ # When a data import verifies "Loss factor should be greater than zero and less than one"
20
+ # Then the verification should not be successful
@@ -1,134 +1,134 @@
1
- Feature: Data import for EgridSubregion
2
- As a data user
3
- I want to import EgridSubregion data
4
- So that I can perform eGRID subregion-based calculations
5
-
6
- Scenario: Successfully verifying that egrid region name is never missing
7
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
8
- When a data import verifies "Egrid region name should never be missing"
9
- Then the verification should be successful
10
-
11
- Scenario: Successfully verifying that net generation is > 0
12
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
13
- When a data import verifies "Net generation should be > 0"
14
- Then the verification should be successful
15
-
16
- Scenario: Successfully verifying that electricity co2 emission factor is > 0
17
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
18
- When a data import verifies "Electricity co2 emission factor should be > 0"
19
- Then the verification should be successful
20
-
21
- Scenario: Successfully verifying that electricity ch4 emission factor is > 0
22
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
23
- When a data import verifies "Electricity ch4 emission factor should be > 0"
24
- Then the verification should be successful
25
-
26
- Scenario: Successfully verifying that electricity n2o emission factor is > 0
27
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
28
- When a data import verifies "Electricity n2o emission factor should be > 0"
29
- Then the verification should be successful
30
-
31
- Scenario: Successfully verifying that electricity emission factor is > 0
32
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
33
- When a data import verifies "Electricity emission factor should be > 0"
34
- Then the verification should be successful
35
-
36
- Scenario: Successfully verifying that electricity co2 biogenic emission factor is 0
37
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
38
- When a data import verifies "Electricity co2 biogenic emission factor should be 0"
39
- Then the verification should be successful
40
-
41
- Scenario: Successfully verifying that net generation units are megawatt hours
42
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
43
- When a data import verifies "Net generation units should be megawatt hours"
44
- Then the verification should be successful
45
-
46
- Scenario: Successfully verifying that electricity co2 emission factor units are kilograms per kilowatt hour
47
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
48
- When a data import verifies "Electricity co2 emission factor units should be kilograms per kilowatt hour"
49
- Then the verification should be successful
50
-
51
- Scenario: Successfully verifying that electricity co2 biogenic emission factor units are kilograms per kilowatt hour
52
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
53
- When a data import verifies "Electricity co2 biogenic emission factor units should be kilograms per kilowatt hour"
54
- Then the verification should be successful
55
-
56
- Scenario: Successfully verifying that electricity ch4 emission factor units are kilograms co2e per kilowatt hour
57
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
58
- When a data import verifies "Electricity ch4 emission factor units should be kilograms co2e per kilowatt hour"
59
- Then the verification should be successful
60
-
61
- Scenario: Successfully verifying that electricity n2o emission factor units are kilograms co2e per kilowatt hour
62
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
63
- When a data import verifies "Electricity n2o emission factor units should be kilograms co2e per kilowatt hour"
64
- Then the verification should be successful
65
-
66
- Scenario: Successfully verifying that electricity emission factor units are kilograms co2e per kilowatt hour
67
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
68
- When a data import verifies "Electricity emission factor units should be kilograms co2e per kilowatt hour"
69
- Then the verification should be successful
70
-
71
- Scenario: Failing to verify that egrid region name is never missing
72
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
73
- When a data import verifies "Egrid region name should never be missing"
74
- Then the verification should not be successful
75
-
76
- Scenario: Failing to verify that net generation is > 0
77
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
78
- When a data import verifies "Net generation should be > 0"
79
- Then the verification should not be successful
80
-
81
- Scenario: Failing to verify that electricity co2 emission factor is > 0
82
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
83
- When a data import verifies "Electricity co2 emission factor should be > 0"
84
- Then the verification should not be successful
85
-
86
- Scenario: Failing to verify that electricity ch4 emission factor is > 0
87
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
88
- When a data import verifies "Electricity ch4 emission factor should be > 0"
89
- Then the verification should not be successful
90
-
91
- Scenario: Failing to verify that electricity n2o emission factor is > 0
92
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
93
- When a data import verifies "Electricity n2o emission factor should be > 0"
94
- Then the verification should not be successful
95
-
96
- Scenario: Failing to verify that electricity emission factor is > 0
97
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
98
- When a data import verifies "Electricity emission factor should be > 0"
99
- Then the verification should not be successful
100
-
101
- Scenario: Failing to verify that electricity co2 biogenic emission factor is 0
102
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
103
- When a data import verifies "Electricity co2 biogenic emission factor should be 0"
104
- Then the verification should not be successful
105
-
106
- Scenario: Failing to verify that net generation units are megawatt hours
107
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
108
- When a data import verifies "Net generation units should be megawatt hours"
109
- Then the verification should not be successful
110
-
111
- Scenario: Failing to verify that electricity co2 emission factor units are kilograms per kilowatt hour
112
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
113
- When a data import verifies "Electricity co2 emission factor units should be kilograms per kilowatt hour"
114
- Then the verification should not be successful
115
-
116
- Scenario: Failing to verify that electricity co2 biogenic emission factor units are kilograms per kilowatt hour
117
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
118
- When a data import verifies "Electricity co2 biogenic emission factor units should be kilograms per kilowatt hour"
119
- Then the verification should not be successful
120
-
121
- Scenario: Failing to verify that electricity ch4 emission factor units are kilograms co2e per kilowatt hour
122
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
123
- When a data import verifies "Electricity ch4 emission factor units should be kilograms co2e per kilowatt hour"
124
- Then the verification should not be successful
125
-
126
- Scenario: Failing to verify that electricity n2o emission factor units are kilograms co2e per kilowatt hour
127
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
128
- When a data import verifies "Electricity n2o emission factor units should be kilograms co2e per kilowatt hour"
129
- Then the verification should not be successful
130
-
131
- Scenario: Failing to verify that electricity emission factor units are kilograms co2e per kilowatt hour
132
- Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
133
- When a data import verifies "Electricity emission factor units should be kilograms co2e per kilowatt hour"
134
- Then the verification should not be successful
1
+ # Feature: Data import for EgridSubregion
2
+ # As a data user
3
+ # I want to import EgridSubregion data
4
+ # So that I can perform eGRID subregion-based calculations
5
+ #
6
+ # Scenario: Successfully verifying that egrid region name is never missing
7
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
8
+ # When a data import verifies "Egrid region name should never be missing"
9
+ # Then the verification should be successful
10
+ #
11
+ # Scenario: Successfully verifying that net generation is > 0
12
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
13
+ # When a data import verifies "Net generation should be > 0"
14
+ # Then the verification should be successful
15
+ #
16
+ # Scenario: Successfully verifying that electricity co2 emission factor is > 0
17
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
18
+ # When a data import verifies "Electricity co2 emission factor should be > 0"
19
+ # Then the verification should be successful
20
+ #
21
+ # Scenario: Successfully verifying that electricity ch4 emission factor is > 0
22
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
23
+ # When a data import verifies "Electricity ch4 emission factor should be > 0"
24
+ # Then the verification should be successful
25
+ #
26
+ # Scenario: Successfully verifying that electricity n2o emission factor is > 0
27
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
28
+ # When a data import verifies "Electricity n2o emission factor should be > 0"
29
+ # Then the verification should be successful
30
+ #
31
+ # Scenario: Successfully verifying that electricity emission factor is > 0
32
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
33
+ # When a data import verifies "Electricity emission factor should be > 0"
34
+ # Then the verification should be successful
35
+ #
36
+ # Scenario: Successfully verifying that electricity co2 biogenic emission factor is 0
37
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
38
+ # When a data import verifies "Electricity co2 biogenic emission factor should be 0"
39
+ # Then the verification should be successful
40
+ #
41
+ # Scenario: Successfully verifying that net generation units are megawatt hours
42
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
43
+ # When a data import verifies "Net generation units should be megawatt hours"
44
+ # Then the verification should be successful
45
+ #
46
+ # Scenario: Successfully verifying that electricity co2 emission factor units are kilograms per kilowatt hour
47
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
48
+ # When a data import verifies "Electricity co2 emission factor units should be kilograms per kilowatt hour"
49
+ # Then the verification should be successful
50
+ #
51
+ # Scenario: Successfully verifying that electricity co2 biogenic emission factor units are kilograms per kilowatt hour
52
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
53
+ # When a data import verifies "Electricity co2 biogenic emission factor units should be kilograms per kilowatt hour"
54
+ # Then the verification should be successful
55
+ #
56
+ # Scenario: Successfully verifying that electricity ch4 emission factor units are kilograms co2e per kilowatt hour
57
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
58
+ # When a data import verifies "Electricity ch4 emission factor units should be kilograms co2e per kilowatt hour"
59
+ # Then the verification should be successful
60
+ #
61
+ # Scenario: Successfully verifying that electricity n2o emission factor units are kilograms co2e per kilowatt hour
62
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
63
+ # When a data import verifies "Electricity n2o emission factor units should be kilograms co2e per kilowatt hour"
64
+ # Then the verification should be successful
65
+ #
66
+ # Scenario: Successfully verifying that electricity emission factor units are kilograms co2e per kilowatt hour
67
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_good"
68
+ # When a data import verifies "Electricity emission factor units should be kilograms co2e per kilowatt hour"
69
+ # Then the verification should be successful
70
+ #
71
+ # Scenario: Failing to verify that egrid region name is never missing
72
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
73
+ # When a data import verifies "Egrid region name should never be missing"
74
+ # Then the verification should not be successful
75
+ #
76
+ # Scenario: Failing to verify that net generation is > 0
77
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
78
+ # When a data import verifies "Net generation should be > 0"
79
+ # Then the verification should not be successful
80
+ #
81
+ # Scenario: Failing to verify that electricity co2 emission factor is > 0
82
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
83
+ # When a data import verifies "Electricity co2 emission factor should be > 0"
84
+ # Then the verification should not be successful
85
+ #
86
+ # Scenario: Failing to verify that electricity ch4 emission factor is > 0
87
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
88
+ # When a data import verifies "Electricity ch4 emission factor should be > 0"
89
+ # Then the verification should not be successful
90
+ #
91
+ # Scenario: Failing to verify that electricity n2o emission factor is > 0
92
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
93
+ # When a data import verifies "Electricity n2o emission factor should be > 0"
94
+ # Then the verification should not be successful
95
+ #
96
+ # Scenario: Failing to verify that electricity emission factor is > 0
97
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
98
+ # When a data import verifies "Electricity emission factor should be > 0"
99
+ # Then the verification should not be successful
100
+ #
101
+ # Scenario: Failing to verify that electricity co2 biogenic emission factor is 0
102
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
103
+ # When a data import verifies "Electricity co2 biogenic emission factor should be 0"
104
+ # Then the verification should not be successful
105
+ #
106
+ # Scenario: Failing to verify that net generation units are megawatt hours
107
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
108
+ # When a data import verifies "Net generation units should be megawatt hours"
109
+ # Then the verification should not be successful
110
+ #
111
+ # Scenario: Failing to verify that electricity co2 emission factor units are kilograms per kilowatt hour
112
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
113
+ # When a data import verifies "Electricity co2 emission factor units should be kilograms per kilowatt hour"
114
+ # Then the verification should not be successful
115
+ #
116
+ # Scenario: Failing to verify that electricity co2 biogenic emission factor units are kilograms per kilowatt hour
117
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
118
+ # When a data import verifies "Electricity co2 biogenic emission factor units should be kilograms per kilowatt hour"
119
+ # Then the verification should not be successful
120
+ #
121
+ # Scenario: Failing to verify that electricity ch4 emission factor units are kilograms co2e per kilowatt hour
122
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
123
+ # When a data import verifies "Electricity ch4 emission factor units should be kilograms co2e per kilowatt hour"
124
+ # Then the verification should not be successful
125
+ #
126
+ # Scenario: Failing to verify that electricity n2o emission factor units are kilograms co2e per kilowatt hour
127
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
128
+ # When a data import verifies "Electricity n2o emission factor units should be kilograms co2e per kilowatt hour"
129
+ # Then the verification should not be successful
130
+ #
131
+ # Scenario: Failing to verify that electricity emission factor units are kilograms co2e per kilowatt hour
132
+ # Given a "EgridSubregion" data import fetches results listed in "egrid_subregion_bad"
133
+ # When a data import verifies "Electricity emission factor units should be kilograms co2e per kilowatt hour"
134
+ # Then the verification should not be successful