Skip to content

Commit

Permalink
Fix tests www_som, failed from GISCE PR #19660 (#603)
Browse files Browse the repository at this point in the history
* Fix tests www_som, failed from GISCE PR #19660

* Fix tests
  • Loading branch information
oriolpiera authored Apr 22, 2024
1 parent 9512932 commit ac539fc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www_som/__terp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"init_xml": [],
"demo_xml": [
"tests/res_partner_demo.xml",
"tests/indexed_prices_demo.xml",
"demo/res_partner_demo.xml",
"demo/indexed_prices_demo.xml",
],
"update_xml": [
"www_som_data.xml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<field name="maturity">C3</field>
<field name="hour_timestamp">2023-05-01 00:00:00</field>
<field name="season">S</field>
<field name="file_date">2023-05-03 00:00:00</field>
<field name="initial_file_date">2023-05-03 00:00:00</field>
</record>
<record model="giscedata.next.days.energy.price" id="giscedata_indexada_prices_test_hour1">
<field name="name">hour1</field>
Expand All @@ -23,6 +25,8 @@
<field name="maturity">C3</field>
<field name="hour_timestamp">2023-05-01 01:00:00</field>
<field name="season">S</field>
<field name="file_date">2023-05-03 00:00:00</field>
<field name="initial_file_date">2023-05-03 00:00:00</field>
</record>
<record model="giscedata.next.days.energy.price" id="giscedata_indexada_prices_test_hour2">
<field name="name">hour2</field>
Expand All @@ -33,6 +37,8 @@
<field name="maturity">C3</field>
<field name="hour_timestamp">2023-05-01 02:00:00</field>
<field name="season">S</field>
<field name="file_date">2023-05-03 00:00:00</field>
<field name="initial_file_date">2023-05-03 00:00:00</field>
</record>
<record model="giscedata.next.days.energy.price" id="giscedata_indexada_prices_test_hour3">
<field name="name">hour3</field>
Expand All @@ -43,6 +49,8 @@
<field name="maturity">C3</field>
<field name="hour_timestamp">2023-05-01 03:00:00</field>
<field name="season">S</field>
<field name="file_date">2023-05-03 00:00:00</field>
<field name="initial_file_date">2023-05-03 00:00:00</field>
</record>
<record model="giscedata.next.days.energy.price" id="giscedata_indexada_prices_test_hour4">
<field name="name">hour4</field>
Expand All @@ -53,6 +61,8 @@
<field name="maturity">C3</field>
<field name="hour_timestamp">2023-05-01 04:00:00</field>
<field name="season">S</field>
<field name="file_date">2023-05-03 00:00:00</field>
<field name="initial_file_date">2023-05-03 00:00:00</field>
</record>
<record model="giscedata.next.days.energy.price" id="giscedata_indexada_prices_test_hour5">
<field name="name">hour5</field>
Expand All @@ -63,6 +73,8 @@
<field name="maturity">C3</field>
<field name="hour_timestamp">2023-05-01 05:00:00</field>
<field name="season">S</field>
<field name="file_date">2023-05-03 00:00:00</field>
<field name="initial_file_date">2023-05-03 00:00:00</field>
</record>
</data>
</openerp>
File renamed without changes.
4 changes: 3 additions & 1 deletion www_som/tests/tests_indexada_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def test__get_energy_prices_repeated_prices__ok(self):
"maturity": "C3.3",
"hour_timestamp": "2023-05-01 01:00:00",
"season": 'S',
"id": 7
"id": 7,
"file_date": "2023-05-03 00:00:00",
"initial_file_date": "2023-05-03 00:00:00",
}

prices_obj.create(self.cursor, self.uid, values)
Expand Down

0 comments on commit ac539fc

Please sign in to comment.