Skip to content

Commit

Permalink
Changed test to use datetime. (#252)
Browse files Browse the repository at this point in the history
* Changed test to use datetime.

* Changed variable name.
  • Loading branch information
AdamFinkle authored Sep 25, 2024
1 parent 63c6f78 commit 2145ffc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion heat-stack/app/utils/pyodide.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ test('pyodide solves climate change', async () => {
}

const executePy = await pyodide.runPythonAsync(`
from datetime import date
from rules_engine import parser
from rules_engine.pydantic_models import (
FuelType,
Expand All @@ -237,7 +238,7 @@ test('pyodide solves climate change', async () => {
summaryInput = SummaryInput(**summaryInputFromJs)
temperatureInput = TemperatureInput(**temperatureInputFromJs)
temperatureInput = TemperatureInput(dates=[date.fromisoformat(date_) for date_ in temperatureInputFromJs["dates"]], temperatures=temperatureInputFromJs["temperatures"])
outputs = engine.get_outputs_natural_gas(summaryInput,temperatureInput, naturalGasInputRecords)
Expand Down

0 comments on commit 2145ffc

Please sign in to comment.