

def test_theme_path(tmpdir):
    'Test that image size is swaped if needed.'
    tmpdir.join('theme').mkdir()
    tmpdir.join('theme').join('templates').mkdir()
    conf = tmpdir.join('sigal.conf.py')
    conf.write("# -*- coding: utf-8 -*-\n\ntheme = 'theme'\n")
    settings = read_settings(str(conf))
    assert (settings['theme'] == tmpdir.join('theme'))

dataset/ETHPy150Open saimn/sigal/tests/test_settings.py test_theme_path/original