File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
data_validation_framework Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 0.7.3] ( https://github.com/BlueBrain/data-validation-framework/compare/0.7.2..0.7.3 )
4
+
5
+ > 22 December 2023
6
+
7
+ ### Fixes
8
+
9
+ - Attach event hooks to proper classes (Adrien Berchet - [ #56 ] ( https://github.com/BlueBrain/data-validation-framework/pull/56 ) )
10
+
3
11
## [ 0.7.2] ( https://github.com/BlueBrain/data-validation-framework/compare/0.7.1..0.7.2 )
4
12
5
13
> 22 December 2023
Original file line number Diff line number Diff line change @@ -637,10 +637,10 @@ def __specifications__(self):
637
637
638
638
639
639
@BaseValidationTask .event_handler (luigi .Event .SUCCESS )
640
- def success_summary (self ):
640
+ def success_summary (task ):
641
641
"""Hook to log a summary report of the task."""
642
642
L .info ("==========================================" )
643
- task_summary = f"SUMMARY { self .task_name } : { self .nb_valid } / { self .nb_total } passed"
643
+ task_summary = f"SUMMARY { task .task_name } : { task .nb_valid } / { task .nb_total } passed"
644
644
L .info (task_summary )
645
645
L .info ("==========================================" )
646
646
@@ -751,12 +751,12 @@ def validation_function(*args, **kwargs):
751
751
752
752
753
753
@ValidationWorkflow .event_handler (luigi .Event .SUCCESS )
754
- def spec_report (current_task ):
754
+ def spec_report (task ):
755
755
"""Hook to create a specification report."""
756
- L .debug ("Generating report of %s" , current_task )
757
- if current_task .generate_report :
756
+ L .debug ("Generating report of %s" , task )
757
+ if task .generate_report :
758
758
try :
759
- make_report (current_task , config = current_task .report_config )
759
+ make_report (task , config = task .report_config )
760
760
# pylint: disable=broad-except
761
761
except Exception as e : # pragma: no cover
762
762
L .error (
You can’t perform that action at this time.
0 commit comments