Skip to content

Commit

Permalink
Refactor: Rename "dummy_processed_energy_bill_input_record" to "_dumm…
Browse files Browse the repository at this point in the history
…y_processed_energy_bill_input"

Co-authored-by: AdamFinkle <AdamFinkle@users.noreply.github.com>
Co-authored-by: Ethan-Strominger <ethanstrominger@users.noreply.github.com>
  • Loading branch information
3 people committed Dec 10, 2024
1 parent ec82535 commit 196d584
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions python/tests/test_rules_engine/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
TemperatureInput,
)

dummy_processed_energy_bill_input_record = ProcessedEnergyBillInput(
_dummy_processed_energy_bill_input = ProcessedEnergyBillInput(
period_start_date=datetime(2024, 1, 1),
period_end_date=datetime(2024, 2, 1),
usage=1.0,
Expand All @@ -31,31 +31,31 @@ def sample_processed_energy_bill_inputs() -> (
):
processed_energy_bill_inputs = [
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[28, 29, 30, 29],
50,
AnalysisType.ALLOWED_HEATING_USAGE,
True,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[32, 35, 35, 38],
45,
AnalysisType.ALLOWED_HEATING_USAGE,
True,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[41, 43, 42, 42],
30,
AnalysisType.ALLOWED_HEATING_USAGE,
True,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[72, 71, 70, 69],
0.96,
AnalysisType.NOT_ALLOWED_IN_CALCULATIONS,
Expand All @@ -72,39 +72,39 @@ def sample_processed_energy_bill_inputs_with_outlier() -> (
):
processed_energy_bill_inputs = [
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[41.7, 41.6, 32, 25.4],
60,
AnalysisType.ALLOWED_HEATING_USAGE,
True,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[28, 29, 30, 29],
50,
AnalysisType.ALLOWED_HEATING_USAGE,
True,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[32, 35, 35, 38],
45,
AnalysisType.ALLOWED_HEATING_USAGE,
True,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[41, 43, 42, 42],
30,
AnalysisType.ALLOWED_HEATING_USAGE,
True,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[72, 71, 70, 69],
0.96,
AnalysisType.NOT_ALLOWED_IN_CALCULATIONS,
Expand Down Expand Up @@ -366,39 +366,39 @@ def test_convert_to_intermediate_processed_energy_bills(

expected_results = [
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[41.7, 41.6, 32, 25.4],
60,
AnalysisType.ALLOWED_HEATING_USAGE,
False,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[28, 29, 30, 29],
50,
AnalysisType.ALLOWED_HEATING_USAGE,
False,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[32, 35, 35, 38],
45,
AnalysisType.ALLOWED_HEATING_USAGE,
False,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[41, 43, 42, 42],
30,
AnalysisType.ALLOWED_HEATING_USAGE,
False,
False,
),
engine.IntermediateProcessedEnergyBill(
dummy_processed_energy_bill_input_record,
_dummy_processed_energy_bill_input,
[72, 71, 70, 69],
0.96,
AnalysisType.ALLOWED_HEATING_USAGE,
Expand Down

0 comments on commit 196d584

Please sign in to comment.