Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Jul 26, 2017
1 parent 4871612 commit 5e6c06c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion safe/definitions/hazard.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
continuous_hazard_unit_all = continuous_hazard_unit['types']
hazard_generic = {
'key': 'hazard_generic',
'name': tr('Generic'),
'name': tr('Generic Hazard'),
'description': tr(
'A <b>generic hazard</b> can be used for any type of hazard where the '
'data have been classified or generalised. For example: earthquake, '
Expand Down
2 changes: 1 addition & 1 deletion safe/impact_function/test/test_impact_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_impact_function_behaviour(self):
impact_function.exposure = exposure_layer
impact_function.hazard = hazard_layer
impact_function.prepare()
self.assertEqual(impact_function.name, 'Flood Polygon On Road Line')
self.assertEqual(impact_function.name, 'Flood Polygon On Roads Line')
self.assertEqual(impact_function.title, 'be affected')

def test_minimum_extent(self):
Expand Down
6 changes: 3 additions & 3 deletions safe/report/test/test_impact_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ def test_analysis_provenance_details_simplified(self):
u'InaSAFE v4 GeoJSON test layer - '}),
('impact_function', {
'header': u'Impact Function',
'provenance': u'Hazard_Generic '
'provenance': u'Generic Hazard '
u'Polygon On '
u'Structure Point'})
u'Structures Point'})
])
}

Expand Down Expand Up @@ -695,7 +695,7 @@ def test_analysis_provenance_tree_details(self):
'header': u'Analysis details',
'details': OrderedDict([('impact_function', {
'header': u'Impact Function',
'provenances': u'Hazard_Generic Polygon On Structure Point'
'provenances': u'Generic Hazard Polygon On Structures Point'
}), ('hazard', {
'header': u'Hazard',
'provenances': OrderedDict([('title', {
Expand Down

0 comments on commit 5e6c06c

Please sign in to comment.