def setUp(self) -> None: User.destroy_all() self.user1 = User({"username": "******", "ext_id": "user1"}) self.user1.save() self.user1.create_auth_token() self.user2 = User({"username": "******", "ext_id": "user2"}) self.user2.save() self.user2.create_auth_token() self.moderator = User({ "username": "******", "ext_id": "mod", "moderator": True }) self.moderator.save() self.moderator.create_auth_token()
def setUp(self) -> None: super(TestEvent, self).setUp() Event.destroy_all() BasePost.destroy_all() User.destroy_all() self.clear_queue()