Esempio n. 1
0
 def test_resolve_asset_not_found_and_not_in_debug_mode(self):
     with assert_raises(KeyError):
         paths.webpack_asset('bundle.js', self.asset_paths, debug=False)
Esempio n. 2
0
 def test_resolve_asset(self):
     asset = paths.webpack_asset('assets.js', self.asset_paths, debug=False)
     assert_equal(asset, '/static/public/js/assets.07123e.js')
Esempio n. 3
0
 def test_resolve_asset_not_found_and_not_in_debug_mode(self):
     with assert_raises(KeyError):
         paths.webpack_asset('bundle.js', self.asset_paths, debug=False)
Esempio n. 4
0
 def test_resolve_asset(self):
     asset = paths.webpack_asset('assets.js', self.asset_paths, debug=False)
     assert_equal(asset, '/static/public/js/assets.07123e.js')
Esempio n. 5
0
 def test_resolve_asset_not_found(self):
     with assert_raises(KeyError):
         paths.webpack_asset('bundle.js', self.asset_paths)
Esempio n. 6
0
 def test_resolve_asset_not_found(self):
     with assert_raises(KeyError):
         paths.webpack_asset('bundle.js', self.asset_paths)