コード例 #1
0
ファイル: api_base.py プロジェクト: spacemansteve/adsws
 def tearDown(self):
     # [hack]
     # When testing, an app is created for every single test but the limiter is
     # always the same. We make sure that the new app forgets about routes and
     # limits set with the previous app instance (or limit registration will be
     # triggered more than once)
     self.app.extensions['limiter'].forget()
     # [/hack]
     db.session.remove()
     db.drop_all()
コード例 #2
0
ファイル: test_accounts.py プロジェクト: aaccomazzi/adsws
 def tearDown(self):
     # [hack]
     # When testing, an app is created for every single test but the limiter is
     # always the same. We make sure that the new app forgets about routes and
     # limits set with the previous app instance (or limit registration will be
     # triggered more than once)
     self.app.extensions['limiter'].forget()
     # [/hack]
     httpretty.disable()
     httpretty.reset()
     self.bootstrap_user = None
     self.real_user = None
     db.drop_all(app=self.app)
コード例 #3
0
ファイル: test_accounts.py プロジェクト: adsabs/adsws
 def tearDown(self):
     # [hack]
     # When testing, an app is created for every single test but the limiter is
     # always the same. We make sure that the new app forgets about routes and
     # limits set with the previous app instance (or limit registration will be
     # triggered more than once)
     self.app.extensions['limiter'].forget()
     # [/hack]
     httpretty.disable()
     httpretty.reset()
     self.bootstrap_user = None
     self.real_user = None
     db.drop_all(app=self.app)
コード例 #4
0
ファイル: test_api.py プロジェクト: adsabs/adsws
 def tearDown(self):
     super(self.__class__, self).tearDown()
     db.session.remove()
     db.drop_all(app=self.app)
コード例 #5
0
ファイル: test_commands.py プロジェクト: spacemansteve/adsws
 def tearDown(self):
     db.drop_all(app=self.app)
コード例 #6
0
 def tearDown(self):
     httpretty.disable()
     httpretty.reset()
     self.bootstrap_user = None
     self.real_user = None
     db.drop_all(app=self.app)
コード例 #7
0
 def tearDown(self):
     super(self.__class__, self).tearDown()
     db.session.remove()
     db.drop_all(app=self.app)
コード例 #8
0
ファイル: api_base.py プロジェクト: jonnybazookatone/adsws
 def tearDown(self):
     db.session.remove()
     db.drop_all()