def tearDown(self):
     [plugin_channel.destroySelf() for plugin_channel in self.plugin_channels]
     [bundle_channel.destroySelf() for bundle_channel in self.bundle_channels]
     for email in [self.user_nothing_email, self.user_contributor_email, self.user_channel_admin_email,
                   self.user_administrator_email, self.user_super_administrator_email]:
         User.deleteBy(email=email)
     Plugin.deleteBy(name=self.plugin_name)
     super().tearDown()
Beispiel #2
0
 def tearDown(self):
     try:
         Building.delete(self.building_id)
         Building.delete(self.building2_id)
     except SQLObjectNotFound:
         pass
     for email in [
             self.user_nothing_email, self.user_contributor_email,
             self.user_channel_admin_email, self.user_administrator_email,
             self.user_super_administrator_email
     ]:
         User.deleteBy(email=email)
     self.channel.destroySelf()
     Plugin.deleteBy(name="dummy")
     super().tearDown()