예제 #1
0
    def test_suggestion_when_summary_blank(self):
        suggestions = Summary.get_suggestion(self.user)

        self.assertEqual(len(suggestions), 1)
        suggestion = suggestions[0]
        self.assertEqual(suggestion["msg"], "Would you like to add a summary of your career?")
        self.assertEqual(suggestion["priority"], 5)
예제 #2
0
    def test_suggestion_when_summary_blank(self):
        suggestions = Summary.get_suggestion(self.user)

        self.assertEqual(len(suggestions), 1)
        suggestion = suggestions[0]
        self.assertEqual(suggestion['msg'],
                         "Would you like to add a summary of your career?")
        self.assertEqual(suggestion['priority'], 5)
예제 #3
0
    def test_suggestion_when_summary_provided(self):
        Summary.objects.create(user=self.user,
                               headline="Headline")
        suggestions = Summary.get_suggestion(self.user)

        self.assertEqual(len(suggestions), 0)
예제 #4
0
    def test_suggestion_when_summary_provided(self):
        Summary.objects.create(user=self.user, headline="Headline")
        suggestions = Summary.get_suggestion(self.user)

        self.assertEqual(len(suggestions), 0)