Beispiel #1
0
 def tearDownClass(self):
     # Delete Songs Data
     for each_record in range(self.records):
         record = each_record+1
         Song.objects(song_id=record).first().delete()
         Podcast.objects(podcast_id=record).first().delete()
         Audiobook.objects(audiobook_id=record).first().delete()
     # End-For
     self.app_context.pop()
Beispiel #2
0
 def tearDownClass(self):
     _song = Song.objects(song_id=self.record).first()
     _podcast = Podcast.objects(podcast_id=self.record).first()
     _audiobook = Audiobook.objects(audiobook_id=self.record).first()
     if _song:
         _song.delete()
     if _podcast:
         _podcast.delete()
     if _audiobook:
         _audiobook.delete()
     self.app_context.pop()
Beispiel #3
0
 def tearDownClass(self):
     for each_record in [self.record, self.record_update]:
         _song = Song.objects(song_id=each_record).first()
         _podcast = Podcast.objects(podcast_id=each_record).first()
         _audiobook = Audiobook.objects(audiobook_id=each_record).first()
         if _song:
             _song.delete()
         if _podcast:
             _podcast.delete()
         if _audiobook:
             _audiobook.delete()
         # End-If
     # End-For
     self.app_context.pop()