コード例 #1
0
ファイル: tests.py プロジェクト: klinkin/Flask-Uploads
class TestConfigurationWithManger(TestConfiguration):
    def setup(self):
        super(TestConfigurationWithManger, self).setup()
        self.uploads_manager = UploadsManager(self.app)

    def configure(self, *sets, **options):
        self.app.config.update(options)
        self.uploads_manager.register(sets)
        return self.app.upload_set_config

    def teardown(self):
        del self.uploads_manager
        super(TestConfigurationWithManger, self).teardown()
コード例 #2
0
ファイル: tests.py プロジェクト: klinkin/Flask-Uploads
class TestConfigurationWithManger(TestConfiguration):
    def setup(self):
        super(TestConfigurationWithManger, self).setup()
        self.uploads_manager = UploadsManager(self.app)

    def configure(self, *sets, **options):
        self.app.config.update(options)
        self.uploads_manager.register(sets)
        return self.app.upload_set_config

    def teardown(self):
        del self.uploads_manager
        super(TestConfigurationWithManger, self).teardown()
コード例 #3
0
ファイル: tests.py プロジェクト: klinkin/Flask-Uploads
 def setup(self):
     super(TestConfigurationWithManger, self).setup()
     self.uploads_manager = UploadsManager(self.app)
コード例 #4
0
ファイル: tests.py プロジェクト: klinkin/Flask-Uploads
 def setup(self):
     super(TestConfigurationWithManger, self).setup()
     self.uploads_manager = UploadsManager(self.app)