Skip to content

Commit

Permalink
tests: fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pesap committed Sep 19, 2024
1 parent 9009241 commit 98eec54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/r2x/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _add_operation_cost_data( # noqa: C901
"uuid" in cost_field_value.keys()
), f"Operation cost field {cost_field_key} was assumed to be a component but is not."
variable_cost = self.get_component_by_uuid(uuid.UUID(cost_field_value["uuid"]))
sub_dict["variable_cost"] = variable_cost.vom_units.function_data.proportional_term
sub_dict["variable_cost"] = variable_cost.vom_cost.function_data.proportional_term
if "fuel_cost" in variable_cost.model_fields:
# Note: We multiply the fuel price by 1000 to offset the division
# done by Sienna when it parses .csv files
Expand Down
2 changes: 1 addition & 1 deletion tests/test_reeds_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_system_creation(reeds_parser_instance):


def test_construct_generators(reeds_parser_instance):
reeds_parser_instance.system = System(name="Test")
reeds_parser_instance.system = System(name="Test", auto_add_composed_components=True)
reeds_parser_instance._construct_buses()
reeds_parser_instance._construct_reserves()
reeds_parser_instance._construct_generators()
Expand Down

0 comments on commit 98eec54

Please sign in to comment.