remove testing clutter #185

This commit is contained in:
rimu 2024-05-18 11:52:35 +12:00
parent df6edf040b
commit 4cf4bb45fe

View file

@ -320,12 +320,7 @@ def list_files(directory):
@bp.route('/test')
def test():
#test_html = '<p>I&#39;m slowly realising that I probably have some mild <a href=\"https://hachyderm.io/tags/LongCovid\" class=\"mention hashtag\" rel=\"tag\">#<span>LongCovid</span></a> </p><p>Since having covid (now had it twice since 2022): iron deficiencies, breathing problems, constant asthma, and now a sudden allergy to some foods apparently.</p><p>My partner and I have been careful throughout the pandemic but clearly not careful enough at times (twice each) since &quot;opening up&quot;.</p><p>And though it could be far far worse, I feel pretty violated right now TBH.</p><p><span class=\"h-card\" translate=\"no\"><a href=\"https://lemmy.ml/c/coronavirus\" class=\"u-url mention\">@<span>coronavirus</span></a></span><br /><span class=\"h-card\" translate=\"no\"><a href=\"https://a.gup.pe/u/longcovid\" class=\"u-url mention\">@<span>longcovid</span></a></span></p>'
#test_html = '<span class=\"h-card\"><a class=\"u-url mention\" data-user=\"AgYVuUCbKlLeZPIhc0\" href=\"https://lemmy.ml/c/aww\" rel=\"ugc\">@<span>aww</span></a></span> I can&#39;t contain my excitement'
#test_html = '<p><a href=\"https://troet.cafe/tags/Garten\" class=\"mention hashtag\" rel=\"tag\">#<span>Garten</span></a> <a href=\"https://troet.cafe/tags/gardening\" class=\"mention hashtag\" rel=\"tag\">#<span>gardening</span></a> <br /><span class=\"h-card\" translate=\"no\"><a href=\"https://lemmy.world/c/gardening\" class=\"u-url mention\">@<span>gardening</span></a></span> <br /><span class=\"h-card\" translate=\"no\"><a href=\"https://woem.men/@garden\" class=\"u-url mention\">@<span>garden</span></a></span> </p><p>So - unser &quot;Tulpenurlaub&quot; ist vorbei, wir sind mit unserem 26PS E-Auto gut überall hin und wieder nach Hause gekommen.</p><p>Unsere 1. Station war der &quot;Hortus Bulborum&quot;, Anlage einer gemeinnützigen Organisation, die sich der Erhaltung historischer Tulpenzwiebeln widmet. Um sie zu erhalten, müssen die Zwiebeln natürlich jedes Jahr wachsen und blühen . . .</p>'
# test_html = '<p>Seems like <span class=\"h-card\" translate=\"no\"><a href=\"https://lemmy.ml/c/firefox\" class=\"u-url mention\">@<span>firefox</span></a></span> <span class=\"h-card\" translate=\"no\"><a href=\"https://mozilla.social/@mozilla\" class=\"u-url mention\">@<span>mozilla</span></a></span> is doing something right</p>'
test_html = '<p><span>John Helmer: \"If Israel escalates by attacking Iran and striking at the countrys infrastructure, then Irans counter will be [...] Electric War.\" <br><br>Naked Capitalism commentary:<br></span><a href=\"https://www.nakedcapitalism.com/2024/04/middle-east-escalation-financial-times-revealing-account-of-israel-risk-of-ukraine-style-air-defense-attrition-helmer-on-possible-electrical-grid-campaign.html\">https://www.nakedcapitalism.com/2024/04/middle-east-escalation-financial-times-revealing-account-of-israel-risk-of-ukraine-style-air-defense-attrition-helmer-on-possible-electrical-grid-campaign.html</a><span><br><br>full article source:<br></span><a href=\"https://johnhelmer.net/loose-lips-dont-sink-ships-or-israel/\">https://johnhelmer.net/loose-lips-dont-sink-ships-or-israel/</a><span><br></span><b><span>LOOSE LIPS DONT SINK SHIPS, OR ISRAEL</span></b><blockquote><span>[...]<br>If Israel escalates by attacking Iran and striking at the countrys infrastructure, then Irans counter will be to take a page out of Russias book and commence the one line of attack which Israel, the US and their allies cannot withstand any better than Ukraine thats </span><a href=\"https://web.archive.org/johnhelmer.net/?s=ELECTRIC+WAR\"><span>Electric War</span></a><span>.<br>For the seven months which have elapsed since Hamas began its operation against Israel on October 7, and Israel commenced its genocide against the Palestinians, there has been no targeting by Hamas, Hezbollah, the Houthis, or the Syrian and Iraqi groups of Israels highly vulnerable maritime gas platforms, gas pipelines, coal and oil-fired electricity generating plants, the coal and oil storages nearby, solar and wind power units, or the electricity grids keeping the country alight.<br>The Arab inhibitions and calculations are understandable. Irans will disappear if Israel triggers a new round of attacks.<br>[...]</span></blockquote><a href=\"https://lemmy.ml/c/worldnews\" class=\"u-url mention\">@worldnews@lemmy.ml</a><span> </span><a href=\"https://a.gup.pe/u/israel\" class=\"u-url mention\">@israel@a.gup.pe</a><span> </span><a href=\"https://a.gup.pe/u/iran\" class=\"u-url mention\">@iran@a.gup.pe</a><span> </span><a href=\"https://a.gup.pe/u/palestine\" class=\"u-url mention\">@palestine@a.gup.pe</a><span> </span><a href=\"https://a.gup.pe/u/imperialism\" class=\"u-url mention\">@imperialism@a.gup.pe</a><span><br></span><a href=\"https://procial.tchncs.de/tags/iran\" rel=\"tag\">#iran</a><span> </span><a href=\"https://procial.tchncs.de/tags/israel\" rel=\"tag\">#israel</a><span> </span><a href=\"https://procial.tchncs.de/tags/palestine\" rel=\"tag\">#palestine</a><span> </span><a href=\"https://procial.tchncs.de/tags/zionismisterrorism\" rel=\"tag\">#zionismisterrorism</a><span> </span><a href=\"https://procial.tchncs.de/tags/imperialism\" rel=\"tag\">#imperialism</a><span> </span><a href=\"https://procial.tchncs.de/tags/decolonization\" rel=\"tag\">#decolonization</a></p>'
test_html = ''
return microblog_content_to_title(test_html)