Mercurial > piecrust2
diff tests/test_data_assetor.py @ 979:45ad976712ec
tests: Big push to get the tests to pass again.
- Lots of fixes everywhere in the code.
- Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now.
- Replace all `.md` test files with `.html` since now a auto-format extension always sets the format.
- Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 Oct 2017 22:51:57 -0700 |
parents | 72f17534d58e |
children | 11b9d0c8bd62 |
line wrap: on
line diff
--- a/tests/test_data_assetor.py Sun Oct 29 22:46:41 2017 -0700 +++ b/tests/test_data_assetor.py Sun Oct 29 22:51:57 2017 -0700 @@ -40,11 +40,11 @@ assetor = Assetor(page) for en in expected.keys(): + assert en in assetor assert hasattr(assetor, en) - assert en in assetor path = site_root.rstrip('/') + '/foo/bar/%s.txt' % en + assert assetor[en] == path assert getattr(assetor, en) == path - assert assetor[en] == path def test_missing_asset():