Esempio n. 1
0
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()
Esempio n. 2
0
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()
Esempio n. 3
0
 def setup(self):
     super(TestConfigurationWithManger, self).setup()
     self.uploads_manager = UploadsManager(self.app)
Esempio n. 4
0
 def setup(self):
     super(TestConfigurationWithManger, self).setup()
     self.uploads_manager = UploadsManager(self.app)