include rj45 with delta systems monitors ; tests #8

Closed
senaduka wants to merge 3 commits from rj45-delta-systems into master
4 changed files with 2 additions and 5 deletions

View File

@@ -91,8 +91,6 @@ class EbomCalculator(object):
for monitor in monitors:
if monitor['power_source'][0] == 'Switch Gear/External':
add_parts_to_list(part_list, {proper_monitor_controller: 1}, 1)
if (is_delta):
add_parts_to_list(part_list, {ethernet_plug: 2},1)
add_parts_to_list(part_list, {wire_clip_large: inverter_count}, self.row_count)

View File

@@ -10,6 +10,7 @@ from helix.models.coordinate import Coordinate
from helix.models.panel import PanelData, Panel
from helix.models.sql.inverter_brands import InverterBrand
class UserValues(object):
def __init__(self, store, site):
self.store = store

View File

@@ -491,8 +491,6 @@ class CalculatorTest(unittest.TestCase):
assert_array_equal(sorted(self.subject.documentation_bom()), sorted(expected))
# Performance Tests
def test_performance_with_1000ish_module_site(self):
store = Store(mockredis.mock_redis_client(), "foo")

View File

@@ -1111,6 +1111,7 @@ class EbomCalculatorTest(unittest.TestCase):
self.user_values.system_type.return_value = SystemType.singleTilt
self.user_values.module_type.return_value = ModuleType.Cell96
expected_output = {
monitor_power_plug: 1,
stump: 0,
@@ -1118,7 +1119,6 @@ class EbomCalculatorTest(unittest.TestCase):
cable_support_lid: 0,
rear_skirt: 0,
monitor_controller_480_v: 1,
ethernet_plug: 2,
}
assert_dictionary_equal(self.subject.compute_ebom(), expected_output)