Beispiel #1
0
 def create_answers(self, number, score):
     survey = SurveyFactory.create(
         name='heartbeat-by-user-first-impression')
     AnswerFactory.create_batch(number,
                                score=score,
                                locale='en-us',
                                survey_id=survey)
Beispiel #2
0
    def test_good(self):
        """One or more answers is fine"""
        AnswerFactory.create_batch(2)

        result = CheckAnyAnswers.check()
        assert result.severity == SEVERITY_LOW
        assert result.summary == '2 answers in last 24 hours.'
        assert result.output == '2'
Beispiel #3
0
 def create_answers(self, number, score):
     survey = SurveyFactory.create(name='heartbeat-by-user-first-impression')
     AnswerFactory.create_batch(
         number,
         score=score,
         locale='en-us',
         survey_id=survey
     )