diff --git a/tests/__init__.py b/tests/__init__.py index 3bc7b9094c..6ba206d2de 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,3 +2,5 @@ #this repository contains the full copyright notices and license terms. from .test_project_plan import suite + +__all__ = ['suite'] diff --git a/work.py b/work.py index 7d277b2a7b..e310303d6d 100644 --- a/work.py +++ b/work.py @@ -94,8 +94,6 @@ class Work: ''' Function to compute function fields ''' - cursor = Transaction().cursor - res = {} ids = [w.id for w in works] @@ -159,8 +157,6 @@ class Work: @classmethod def set_function_fields(cls, works, name, value): - pool = Pool() - fun_fields = ('actual_start_date', 'actual_finish_date', 'constraint_start_date', 'constraint_finish_date') db_fields = ('actual_start_time', 'actual_finish_time',