Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2018-09-23 12:50:43 +00:00
commit 283375687d
2 changed files with 2 additions and 2 deletions

View File

@ -29,4 +29,4 @@ pytest:
- apt-get update && cat system-requirements-debian.txt | xargs apt-get install -y
- python manage.py collectstatic
script:
- pytest -v --cov=ojusomap
- pytest -v --cov=ojusomap --cov=apps

View File

@ -96,7 +96,7 @@ class CaseStudyTests(TestCase):
def test_get_renewable_generation_detail_with_wind(self):
"""get_renewable_generation_detail() should return the description prefixed with 'wind power'"""
case_study = CaseStudy(generation_technology='SSWE')
self.assertEqual(case_study.get_renewable_generation_detail(), "Wind energy Small-scale (less than 500 kW)")
self.assertTrue(case_study.get_renewable_generation_detail().startswith("Wind energy"))
def test_get_renewable_generation_detail_with_other(self):
"""get_renewable_generation_detail() should return the detail provided in .generation_technology_other"""