tests: adapt collecstatic test to work before css files have been built (#49776)
This commit is contained in:
parent
53641d4e97
commit
27048829a6
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue