From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B986A1FC0D for ; Mon, 15 Mar 2021 11:58:28 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 09/35] t/html_index: remove now-worthless test Date: Mon, 15 Mar 2021 12:58:00 +0100 Message-Id: <20210315115826.17591-10-e@80x24.org> In-Reply-To: <20210315115826.17591-1-e@80x24.org> References: <20210315115826.17591-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This was for quote-folding behavior we had long ago, but it ended up just being yet another import test. --- MANIFEST | 1 - t/html_index.t | 56 -------------------------------------------------- 2 files changed, 57 deletions(-) delete mode 100644 t/html_index.t diff --git a/MANIFEST b/MANIFEST index 4d2cfb10..49c10d62 100644 --- a/MANIFEST +++ b/MANIFEST @@ -345,7 +345,6 @@ t/hl_mod.t t/home2/.gitignore t/home2/Makefile t/home2/README -t/html_index.t t/httpd-corner.psgi t/httpd-corner.t t/httpd-https.t diff --git a/t/html_index.t b/t/html_index.t deleted file mode 100644 index 8e2a674f..00000000 --- a/t/html_index.t +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright (C) 2014-2021 all contributors -# License: AGPL-3.0+ -use strict; -use warnings; -use Test::More; -use PublicInbox::Eml; -use PublicInbox::Feed; -use PublicInbox::Git; -use PublicInbox::Import; -use PublicInbox::Inbox; -use PublicInbox::TestCommon; -my ($tmpdir, $for_destroy) = tmpdir(); -my $git_dir = "$tmpdir/gittest"; -my $ibx = PublicInbox::Inbox->new({ - address => 'test@example', - name => 'tester', - inboxdir => $git_dir, - url => 'http://example.com/test', -}); -my $git = $ibx->git; -my $im = PublicInbox::Import->new($git, 'tester', 'test@example'); - -# setup -{ - $im->init_bare; - my $prev = ""; - - foreach my $i (1..6) { - my $mid = "<$i\@example.com>"; - my $mid_line = "Message-ID: $mid"; - if ($prev) { - $mid_line .= "In-Reply-To: $prev"; - } - $prev = $mid; - my $mime = PublicInbox::Eml->new(< -To: U -$mid_line -Subject: zzz #$i -Date: Thu, 01 Jan 1970 00:00:00 +0000 - -> This is a long multi line quote so it should not be allowed to -> show up in its entirty in the Atom feed. drop me - -msg $i - -> inline me here, short quote - -keep me -EOF - like($im->add($mime), qr/\A:\d+\z/, 'inserted message'); - } - $im->done; -} - -done_testing();