Пример #1
0
def pitches_by_category(category_id):
    '''
    View pitches page function that displays the picthes available
    '''
    pitches = Pitch.get_category_pitch(category_id)

    return render_template('pitches.html', pitches = pitches)
Пример #2
0
 def test_get_category_pitch(self):
     self.new_pitch.save_pitch()
     get_pitch = Pitch.get_category_pitch(1)
     self.assertEqual(len(get_pitch) == 1)
Пример #3
0
 def test_get_category_pitch(self):
     self.new_pitch.save_pitch()
     get_pitch = Pitch.get_category_pitch(1)
     self.assertTrue(len(get_pitch) > 0)