From 85ef26022862b80ad83036fccff2ae24391bb221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 7 Sep 2019 23:38:20 +0200 Subject: [PATCH] Prevent assign unknown attributes on Model by adding __slots__ on proteus classes. issue6573 review254081002 --- tests/scenario_project_invoice_progress.rst | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/scenario_project_invoice_progress.rst b/tests/scenario_project_invoice_progress.rst index 3829ef053c..07e3e94f2a 100644 --- a/tests/scenario_project_invoice_progress.rst +++ b/tests/scenario_project_invoice_progress.rst @@ -109,10 +109,6 @@ Create a Project:: >>> TimesheetWork = Model.get('timesheet.work') >>> project = ProjectWork() >>> project.name = 'Test effort' - >>> work = TimesheetWork() - >>> work.name = 'Test effort' - >>> work.save() - >>> project.work = work >>> project.type = 'project' >>> project.party = customer >>> project.project_invoice_method = 'progress' @@ -120,10 +116,6 @@ Create a Project:: >>> project.effort_duration = datetime.timedelta(hours=1) >>> task = ProjectWork() >>> task.name = 'Task 1' - >>> work = TimesheetWork() - >>> work.name = 'Task 1' - >>> work.save() - >>> task.work = work >>> task.type = 'task' >>> task.product = product >>> task.effort_duration = datetime.timedelta(hours=5)