def test_init_post(app): """Test module initialization using init_app.""" assets = InvenioAssets() assert assets.env assert assets.collect assert 'REQUIREJS_BASEURL' not in app.config assert 'COLLECT_STATIC_ROOT' not in app.config assets.init_app(app) assert 'REQUIREJS_BASEURL' in app.config assert 'COLLECT_STATIC_ROOT' in app.config
def test_init_post(app): """Test module initialization using init_app.""" assets = InvenioAssets() assert 'COLLECT_STATIC_ROOT' not in app.config assets.init_app(app) assert assets.collect assert assets.webpack assert 'COLLECT_STATIC_ROOT' in app.config assert 'WEBPACKEXT_PROJECT' in app.config assert app.config['WEBPACKEXT_STORAGE_CLS'] == FileStorage