def test_dynamic_adding_bundle(self):
        customBundle = Bundle('sass/main.scss',
                              output='gen/foo.bar')
        assets.register('custom', customBundle)

        assetsUrls = urls()
        self.assertIn('foo', assetsUrls)
 def assets(self):
     return urls()
Exemple #3
0
 def assets(self):
     return urls()
    def test_url(self):
        assetsUrls = urls()
        self.assertIn('main', assetsUrls)

        main = assetsUrls['main']
        self.assertIn('/static/gen/main.css', main)
Exemple #5
0
    def test_dynamic_adding_bundle(self):
        customBundle = Bundle('sass/main.scss', output='gen/foo.bar')
        assets.register('custom', customBundle)

        assetsUrls = urls()
        self.assertIn('foo', assetsUrls)
Exemple #6
0
    def test_url(self):
        assetsUrls = urls()
        self.assertIn('main', assetsUrls)

        main = assetsUrls['main']
        self.assertIn('/static/gen/main.css', main)