Fix #5391 - Alembic migrations would only work for SQLite
[larjonas-mediagoblin.git] / mediagoblin / tests / test_staticdirect.py
blob3a9e2fd9687220ef45978932802cf1fb2f857caf
1 from mediagoblin.tools import staticdirect
3 def test_staticdirect():
4 sdirect = staticdirect.StaticDirect(
5 {None: "/static/",
6 "theme": "http://example.org/themestatic"})
7 assert sdirect("css/monkeys.css") == "/static/css/monkeys.css"
8 assert sdirect("images/lollerskate.png", "theme") == \
9 "http://example.org/themestatic/images/lollerskate.png"