From b42a9c7571aa55cd42b3b41627207816b07fd433 Mon Sep 17 00:00:00 2001 From: Anna Sidwell Date: Sun, 23 Sep 2018 13:50:38 +0100 Subject: [PATCH] Fix failing test --- .gitlab-ci.yml | 2 +- apps/map/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d6c8748..92e55a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/apps/map/tests.py b/apps/map/tests.py index 7c31f7e..d8ff558 100644 --- a/apps/map/tests.py +++ b/apps/map/tests.py @@ -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"""