- expected['make_type'] = ''
- form_data = self.post_process(1)
- form_data['title'] = 'bar'
- form_data['description'] = 'rab'
- form_data['effort'] = 0.9
- self.post_process(2, form_data)
+ date = '2024-01-01'
+ day = self.day_dict(date)
+ post_day: dict[str, object] = {'day_comment': '', 'make_type': ''}
+ self.check_post(post_day, f'/day?date={date}', 302,
+ f'/day?date={date}&make_type=')
+ library: dict[str, object]
+ library = {'Day': self.as_refs([day]), 'Process': {}, 'Todo': {}}
+ expected: dict[str, object] = {'day': date,
+ 'top_nodes': [],
+ 'make_type': '',
+ 'enablers_for': {},
+ 'disablers_for': {},
+ 'conditions_present': [],
+ 'processes': [],
+ '_library': library}
+ self.post_process(1)
+ post_proc2 = {'title': 'bar', 'description': 'rab', 'effort': 0.9}
+ self.post_process(2, post_proc2)