tests: adapt collecstatic test to work before css files have been built (#49776)

This commit is contained in:
Frédéric Péters 2020-12-30 14:30:39 +01:00
parent 53641d4e97
commit 27048829a6
1 changed files with 3 additions and 3 deletions

View File

@ -62,12 +62,12 @@ def test_loading():
def test_collectstatic(pub):
CmdCollectStatic.collectstatic(pub)
assert os.path.exists(os.path.join(pub.app_dir, 'collectstatic', 'css', 'wcs.css'))
assert os.path.exists(os.path.join(pub.app_dir, 'collectstatic', 'css', 'qommon.css'))
assert os.path.exists(os.path.join(pub.app_dir, 'collectstatic', 'css', 'required.png'))
assert os.path.exists(os.path.join(pub.app_dir, 'collectstatic', 'js', 'qommon.forms.js'))
assert os.path.exists(os.path.join(pub.app_dir, 'collectstatic', 'css', 'gadjo.css'))
assert os.path.exists(os.path.join(pub.app_dir, 'collectstatic', 'xstatic', 'jquery.js'))
CmdCollectStatic.collectstatic(pub, clear=True, link=True)
assert os.path.islink(os.path.join(pub.app_dir, 'collectstatic', 'css', 'wcs.css'))
assert os.path.islink(os.path.join(pub.app_dir, 'collectstatic', 'css', 'required.png'))
def test_migrate(two_pubs):