예제 #1
0
    def test_inline_css_resources(self) -> None:
        r = resources.CSSResources(mode="inline")
        assert r.mode == "inline"
        assert r.dev is False

        assert len(r.css_raw) == 0
        assert hasattr(r, "js_raw") is False
        assert r.messages == []
예제 #2
0
def test_inline_css_resources():
    r = resources.CSSResources(mode="inline")
    assert r.mode == "inline"
    assert r.dev is False

    assert len(r.css_raw) == 3
    assert hasattr(r, 'js_raw') is False
    assert r.messages == []
예제 #3
0
 def test_css_resources_default_mode_is_cdn(self) -> None:
     r = resources.CSSResources()
     assert r.mode == "cdn"
예제 #4
0
def test_css_resources_default_mode_is_inline():
    r = resources.CSSResources()
    assert r.mode == "inline"