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)
예제 #2
0
 def assets(self):
     return urls()
예제 #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)
예제 #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)
예제 #6
0
    def test_url(self):
        assetsUrls = urls()
        self.assertIn('main', assetsUrls)

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