Example #1
0
 def test_versioned_static_media(self):
     feature = Feature(js=['wagtailadmin/js/example/feature.js'], css={
         'all': ['wagtailadmin/css/example/feature.css'],
     })
     media_html = str(feature.media)
     self.assertRegex(media_html, r'feature.js\?v=(\w+)')
     self.assertRegex(media_html, r'feature.css\?v=(\w+)')
Example #2
0
 def test_versioned_static_media(self):
     feature = Feature(
         js=["wagtailadmin/js/example/feature.js"],
         css={
             "all": ["wagtailadmin/css/example/feature.css"],
         },
     )
     media_html = str(feature.media)
     self.assertRegex(media_html, r"feature.js\?v=(\w+)")
     self.assertRegex(media_html, r"feature.css\?v=(\w+)")