def test_multiple_separate_apps(self):
        app1 = Flask(__name__)
        self.env.init_app(app1)

        # With no app yet available...
        assert_raises(RuntimeError, getattr, self.env, 'url')
        # ...set a default
        self.env.config.setdefault('FOO', 'BAR')

        # When an app is available, the default is used
        with app1.test_request_context():
            assert self.env.config['FOO'] == 'BAR'

            # If the default is overridden for this application, it
            # is still valid for other apps.
            self.env.config['FOO'] = '42'
            assert self.env.config['FOO'] == '42'
            app2 = Flask(__name__)
            with app2.test_request_context():
                assert self.env.config['FOO'] == 'BAR'
Install the requirements for a component.
dataset/ETHPy150Open miracle2k/flask-assets/tests/test_config.py/TestConfigNoAppBound.test_multiple_separate_apps--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/bootstrap.py/_handle_requirements