Skip to content

Commit

Permalink
rdrf #2449 get fields on tl
Browse files Browse the repository at this point in the history
  • Loading branch information
id2359 committed Apr 12, 2023
1 parent f88fbf5 commit 6cbcc05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rdrf/dashboards/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_normal_case(self):

def create_traffic_light(self, data):
from dashboards.components.tl import TrafficLights
from dashboards.components.tl import get_fields

vis_config = Mock()

Expand Down Expand Up @@ -95,7 +96,9 @@ def create_traffic_light(self, data):
vis_config.config = config_dict
patient = Mock()

return TrafficLights("crc test tl", vis_config, data, patient, None)
tl = TrafficLights("crc test tl", vis_config, data, patient, None)
tl.fields = get_fields(tl.config)
return tl

def create_dataframe(self):
return None
Expand Down

0 comments on commit 6cbcc05

Please sign in to comment.