inasafe / inasafe-realtime

Realtime logic for InaSAFE
2 stars 8 forks source link

Add forecast_duration for Ash #184

Closed lucernae closed 6 years ago

lucernae commented 6 years ago

Add BaseHazardTaskResult class for return value Also improve unittests

codecov[bot] commented 6 years ago

Codecov Report

Merging #184 into develop will increase coverage by 0.78%. The diff coverage is 80.82%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #184      +/-   ##
===========================================
+ Coverage    77.84%   78.63%   +0.78%     
===========================================
  Files           40       40              
  Lines         1237     1287      +50     
  Branches        72       73       +1     
===========================================
+ Hits           963     1012      +49     
  Misses         228      228              
- Partials        46       47       +1
Impacted Files Coverage Δ
src/realtime/ash/tests/test_ash_hazard.py 93.44% <ø> (ø) :arrow_up:
src/realtime/ash/ash_hazard.py 90.9% <100%> (+0.32%) :arrow_up:
src/realtime/utilities.py 96.77% <100%> (+0.62%) :arrow_up:
src/realtime/tasks/earthquake.py 72% <50%> (ø) :arrow_up:
src/realtime/tasks/flood.py 86.36% <50%> (ø) :arrow_up:
src/realtime/tasks/ash.py 83.33% <50%> (+33.33%) :arrow_up:
src/realtime/ash/process_events.py 70% <75%> (-1.43%) :arrow_down:
src/realtime/earthquake/process_event.py 80% <75%> (+0.83%) :arrow_up:
src/realtime/flood/process_events.py 74.35% <80%> (-0.65%) :arrow_down:
src/realtime/tasks/tests/test_celery_tasks.py 89.84% <87.5%> (-1.37%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 06329e6...9fcc72e. Read the comment docs.