@@ -0,0 +1,1635 @@
+import os%0Afrom tests import PMGTestCase%0Afrom tests.fixtures import (%0A    dbfixture, CommitteeQuestionData%0A)%0A%0A%0Aclass TestQuestionAnswer(PMGTestCase):%0A    def setUp(self):%0A        super(TestQuestionAnswer, self).setUp()%0A%0A        self.fx = dbfixture.data(%0A            CommitteeQuestionData,%0A        )%0A        self.fx.setup()%0A%0A    def tearDown(self):%0A        self.fx.teardown()%0A        super(TestQuestionAnswer, self).tearDown()%0A%0A    def test_get_minister_questions_combined(self):%0A        response = self.client.get(%0A            %22minister-questions-combined/%22,%0A            base_url=%22http://api.pmg.test:5000/%22%0A        )%0A        results = response.json%5B%22results%22%5D%0A        self.assertEqual(2, len(results))%0A        questions = %5Bresult%5B'question'%5D for result in results%5D%0A        self.assertIn(self.fx.CommitteeQuestionData.arts_committee_question_one.question,%0A                      questions)%0A        self.assertIn(self.fx.CommitteeQuestionData.arts_committee_question_two.question,%0A                      questions)%0A%0A    def test_get_minister_questions_combined_filter_by_year(self):%0A        response = self.client.get(%0A            %22minister-questions-combined/?filter%5Byear%5D=2018%22,%0A            base_url=%22http://api.pmg.test:5000%22%0A        )%0A        results = response.json%5B%22results%22%5D%0A        self.assertEqual(1, len(results))%0A        questions = %5Bresult%5B'question'%5D for result in results%5D%0A        self.assertNotIn(self.fx.CommitteeQuestionData.arts_committee_question_one.question,%0A                         questions)%0A        self.assertIn(self.fx.CommitteeQuestionData.arts_committee_question_two.question,%0A                      questions)%0A

Add unit test for minister_questions_combined api endpoint