Fix up tests and eliminate a warning.

This commit is contained in:
Peter Williams 2022-08-19 11:22:48 -04:00
Родитель 176e833738
Коммит 0ddab28007
3 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -657,6 +657,8 @@ def wtml_report(settings):
mywarn("ImageSet has no credits")
credits_plain_report = credits_tag_report = ["(none)"]
else:
# NB this can cause MarkupResemblesLocatorWarning if the text is short
# and contains no HTML tags
credits_plain_report, credits_tag_report = process_html(imgset.credits)
if not imgset.credits_url:

Просмотреть файл

@ -17,7 +17,7 @@
OffsetY="1.3867980621800038e-05" Permission="0" Projection="Tan"
Rotation="50.320000000000306" Sparse="True" StockSet="False" TileLevels="7"
Url="L{1}X{2}Y{3}.png" WidthFactor="2">
<Credits>NASA, ESA, N. Smith (University of California, Berkeley), and The Hubble Heritage Team (STScI/AURA)</Credits>
<Credits>NASA, ESA, N. Smith (University of California, Berkeley), and The Hubble Heritage Team (STScI,AURA)</Credits>
<CreditsUrl>https://www.spacetelescope.org/images/heic0707a/</CreditsUrl>
<Description>Hubble's view of the Carina Nebula ...</Description>
<ThumbnailUrl>thumb.jpg</ThumbnailUrl>

Просмотреть файл

@ -24,6 +24,7 @@ class TestRunServer(object):
settings = Namespace()
settings.port = cls.server_port
settings.root_dir = test_path()
settings.heartbeat = False
# Note: there can be a race condition between server startup and the
# execution of the tests. There doesn't seem to be any mechanism to