Skip to content

Commit

Permalink
Merge pull request #1353 from bcgov/feat/daniel-add-date-validation-t…
Browse files Browse the repository at this point in the history
…o-fc-1304

feat: Add schema validation to fuel code dates
  • Loading branch information
dhaselhan authored Dec 5, 2024
2 parents ff07dac + bf92cac commit 3219a4d
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 167 deletions.
6 changes: 6 additions & 0 deletions backend/lcfs/tests/fuel_code/test_fuel_code_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ async def test_create_fuel_code_success():
carbon_intensity=20.5,
company="XYZ Corp",
application_date="2023-10-01",
approval_date="2023-10-02",
effective_date="2023-10-03",
expiration_date="2024-10-01",
edrms="EDRMS-123",
feedstock="Corn oil",
feedstock_location="Canada",
Expand Down Expand Up @@ -124,6 +127,9 @@ async def test_update_fuel_code_success():
carbon_intensity=20.5,
company="XYZ Corp",
application_date="2023-10-01",
approval_date="2023-10-02",
effective_date="2023-10-03",
expiration_date="2024-10-01",
edrms="EDRMS-123",
feedstock="Corn oil",
feedstock_location="Canada",
Expand Down
Loading

0 comments on commit 3219a4d

Please sign in to comment.