1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests
Vladimír Vondruš 673e33840d Don't process metadata links before all files are present.
The refresh_metadata_intersite_links() is called again later, so this
bit was only causing everything to be processed twice. Besides
that, it makes the processing dependent on file order -- in particular,
when metadata references a file that was not parsed yet, it reported an
"Unable to find" warning. But everything is found in the second pass, so
this only causes a superflous false warning and no change to the output.

The related test now needs to call the
refresh_metadata_intersite_links() explicitly. That function is called
from Pelican.run() and all generators but the test processes just one
page so it has no chance of being called implicitly.

Related discussion: https://github.com/getpelican/pelican/pull/2288/files#r204337359
2018-11-11 01:19:20 +01:00
..
content add blogger importer 2018-08-07 14:33:10 +02:00
cyclic_intersite_links Add a test for false-positive warnings about intersite links. 2018-11-11 01:18:53 +01:00
mixed_content Make StaticGenerator skip content sources. Refs #1019. 2014-10-31 16:46:01 -07:00
nested_content/maindir Make PAGE_EXCLUDES work with subdirs. Fixes #1500. 2014-11-01 17:38:20 -07:00
output automatically copy linked static files 2018-11-01 18:08:11 +01:00
TestPages automatically copy linked static files 2018-11-01 18:08:11 +01:00
theme_overrides Add THEME_TEMPLATE_OVERRIDES. Refs 2021 2017-10-10 14:33:20 +08:00
__init__.py Add logging for warnings during test suite run 2015-10-22 09:45:04 +02:00
default_conf.py Convert FEED settings from %s to {slug} redux (#2432) 2018-11-03 16:12:20 +01:00
support.py automatically copy linked static files 2018-11-01 18:08:11 +01:00
test_cache.py automatically copy linked static files 2018-11-01 18:08:11 +01:00
test_contents.py Don't process metadata links before all files are present. 2018-11-11 01:19:20 +01:00
test_generators.py automatically copy linked static files 2018-11-01 18:08:11 +01:00
test_importer.py control slug substitutions from settings with regex 2018-10-31 16:20:21 +01:00
test_paginator.py tweak paginator to accomodate {slug}.html patterns 2018-11-01 00:14:22 +01:00
test_pelican.py Add a test for false-positive warnings about intersite links. 2018-11-11 01:18:53 +01:00
test_readers.py Fix more python 3.6 regex DeprecationWarning's 2017-03-29 10:19:47 +02:00
test_rstdirectives.py fulfil pep8 standard 2015-08-17 13:34:32 +02:00
test_server.py correct suffix order in ComplexHTTPRequestHandler 2018-08-08 16:37:39 +02:00
test_settings.py control slug substitutions from settings with regex 2018-10-31 16:20:21 +01:00
test_testsuite.py Drop unsupported Python 3.3 2017-10-02 18:33:21 +03:00
test_urlwrappers.py control slug substitutions from settings with regex 2018-10-31 16:20:21 +01:00
test_utils.py control scope of identification of translations with new settings 2018-11-01 10:12:47 +01:00