Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raimundo-henriques committed Aug 26, 2024
1 parent ea4632d commit 039b665
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/tests.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use pact_data_model::*;
use chrono::{TimeZone, Utc};
use pact_data_model::*;
use rust_decimal::prelude::FromPrimitive;
use rust_decimal::Decimal;

#[test]
fn test_deser_geography() {

let cf = CarbonFootprint {
declared_unit: DeclaredUnit::Kilogram,
unitary_product_amount: StrictlyPositiveDecimal(Decimal::from_f64(1.0).unwrap()),
Expand All @@ -28,7 +27,7 @@ fn test_deser_geography() {
CrossSectoralStandard::Ghgp,
CrossSectoralStandard::ISO14044,
]),
product_or_sector_specific_rules: ProductOrSectorSpecificRuleSet(vec![]),
product_or_sector_specific_rules: None,
biogenic_accounting_methodology: None,
boundary_processes_description: String::from(""),
reference_period_start: Utc.with_ymd_and_hms(2021, 1, 1, 00, 00, 00).unwrap(),
Expand Down Expand Up @@ -64,7 +63,6 @@ fn test_deser_geography() {
"GHGP Product",
"ISO14044"
],
"productOrSectorSpecificRules": [],
"boundaryProcessesDescription": "",
"referencePeriodStart": "2021-01-01T00:00:00Z",
"referencePeriodEnd": "2022-01-01T00:00:00Z",
Expand Down Expand Up @@ -95,7 +93,6 @@ fn test_deser_geography() {
"GHGP Product",
"ISO14044"
],
"productOrSectorSpecificRules": [],
"boundaryProcessesDescription": "",
"referencePeriodStart": "2021-01-01T00:00:00Z",
"referencePeriodEnd": "2022-01-01T00:00:00Z",
Expand Down Expand Up @@ -134,7 +131,6 @@ fn test_deser_geography() {
"GHGP Product",
"ISO14044"
],
"productOrSectorSpecificRules": [],
"boundaryProcessesDescription": "",
"referencePeriodStart": "2021-01-01T00:00:00Z",
"referencePeriodEnd": "2022-01-01T00:00:00Z",
Expand Down Expand Up @@ -176,7 +172,6 @@ fn test_deser_geography() {
"GHGP Product",
"ISO14044"
],
"productOrSectorSpecificRules": [],
"boundaryProcessesDescription": "",
"referencePeriodStart": "2021-01-01T00:00:00Z",
"referencePeriodEnd": "2022-01-01T00:00:00Z",
Expand Down

0 comments on commit 039b665

Please sign in to comment.