Skip to content

Commit fe36e6a

Browse files
authored
Use a standard head1 DESCRIPTION for tests (#3401)
This is more expected and makes it easier to test for it later.
1 parent 7cc03f9 commit fe36e6a

File tree

118 files changed

+118
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+118
-118
lines changed

t/author/eol.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plan skip_all => 'Test::EOL required' if $EVAL_ERROR;
99
use FindBin '$Bin';
1010
use File::Find;
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether Perl and TT files have lines that end
1515
with Windows EOL characters rather than Unix ones.

t/author/notabs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plan skip_all => 'Test::NoTabs required' if $EVAL_ERROR;
99
use FindBin '$Bin';
1010
use File::Find;
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether Perl and TT files use tabs
1515
when they should use multiple spaces instead.

t/hydration_i18n.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use MusicBrainz::Server::Data::Utils qw( contains_string );
99
use String::ShellQuote qw( shell_quote );
1010
use Test::More;
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks that any components using hydration exist under
1515
root/static/scripts/. It also checks that any imported files that use

t/lib/t/MusicBrainz/DataStore/Redis.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use DBDefs;
1414

1515
with 't::Context';
1616

17-
=head2 Test description
17+
=head1 DESCRIPTION
1818
1919
This test checks basic tasks for the Redis store, including adding, deleting
2020
and expiring keys.

t/lib/t/MusicBrainz/DataStore/RedisMulti.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use MusicBrainz::DataStore::Redis;
1313
use MusicBrainz::DataStore::RedisMulti;
1414
use DBDefs;
1515

16-
=head2 Test description
16+
=head1 DESCRIPTION
1717
1818
This test checks basic tasks for the RedisMulti store (including adding,
1919
deleting and expiring keys), which distributes queries to multiple underlying

t/lib/t/MusicBrainz/Script/RemoveEmptyURLs.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use MusicBrainz::Script::RemoveEmpty;
1010

1111
with 't::Context';
1212

13-
=head2 Test description
13+
=head1 DESCRIPTION
1414
1515
This test checks whether the RemoveEmpty script is working as expected
1616
for URLS, deleting only URLs that are unused, not new,

t/lib/t/MusicBrainz/Script/RemoveUnreferencedRows.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use MusicBrainz::Script::RemoveUnreferencedRows;
1414

1515
with 't::Context';
1616

17-
=head2 Test description
17+
=head1 DESCRIPTION
1818
1919
This test checks whether the RemoveUnreferencedRows script is working
2020
as expected for artist credits, deleting only the ones that are unused

t/lib/t/MusicBrainz/Server/Authentication/WS.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use URI::QueryParam;
1212

1313
with 't::Context', 't::Mechanize';
1414

15-
=head2 Test description
15+
=head1 DESCRIPTION
1616
1717
This test checks OAuth authentication in the web service, by attempting
1818
to request data for a private collection.

t/lib/t/MusicBrainz/Server/Controller/Admin/DeleteEditor.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use MusicBrainz::Server::Test qw( html_ok );
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether admins can delete an editor account, and whether
1515
the editors themselves can do it. It also checks whether users are logged out

t/lib/t/MusicBrainz/Server/Controller/Admin/PrivilegeSearch.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use MusicBrainz::Server::Test qw( test_xpath_html );
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether the privilege search works as expected, and whether
1515
it's blocked for non-admins.

t/lib/t/MusicBrainz/Server/Controller/Admin/WikiDoc/Create.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
1010

1111
with 't::Mechanize', 't::Context';
1212

13-
=head2 Test description
13+
=head1 DESCRIPTION
1414
1515
This test checks that the WikiDoc Add Page form is blocked for users without
1616
the appropriate privileges, that it loads for privileged users, and that

t/lib/t/MusicBrainz/Server/Controller/Admin/WikiDoc/Delete.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
1010

1111
with 't::Mechanize', 't::Context';
1212

13-
=head2 Test description
13+
=head1 DESCRIPTION
1414
1515
This test checks that the WikiDoc Remove Page form is blocked for users
1616
without the appropriate privileges, that it loads for privileged users, and

t/lib/t/MusicBrainz/Server/Controller/Admin/WikiDoc/Edit.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
1010

1111
with 't::Mechanize', 't::Context';
1212

13-
=head2 Test description
13+
=head1 DESCRIPTION
1414
1515
This test checks that the WikiDoc Edit Page form is blocked for users without
1616
the appropriate privileges, that it loads for privileged users, and that

t/lib/t/MusicBrainz/Server/Controller/Area/Aliases.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( html_ok page_test_jsonld );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether area aliases are correctly listed on the area
1414
alias page, both on the site itself and on the JSON-LD data.

t/lib/t/MusicBrainz/Server/Controller/Area/Create.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether non-ended areas can be added (which used to ISE, see
1515
MBS-8661) and, by extension, whether basic area adding works. It also ensures

t/lib/t/MusicBrainz/Server/Controller/Area/Edit.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether non-ended areas can be edited (which used to ISE, see
1515
MBS-8661) and, by extension, whether basic area editing works. It also ensures

t/lib/t/MusicBrainz/Server/Controller/Area/Show.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok page_test_jsonld );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether basic area data is correctly listed in the JSON-LD
1313
of an area's index (main) page.

t/lib/t/MusicBrainz/Server/Controller/Area/Tags.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether area tagging is working correctly. It checks both
1313
up- and downvoting, plus withdrawing/removing tags.

t/lib/t/MusicBrainz/Server/Controller/Area/Users.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( html_ok );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether the Users tab for an area correctly lists editors
1414
who have their area set to it or to an area contained in it.

t/lib/t/MusicBrainz/Server/Controller/Artist/AddAlias.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether alias adding for artists works, including whether
1414
the sort name defaults to the name when not explicitly entered.

t/lib/t/MusicBrainz/Server/Controller/Artist/AddAnnotation.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use Time::HiRes qw( gettimeofday tv_interval );
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether adding annotations for artists works, including
1515
whether four spaces at the start of the annotation are left untrimmed

t/lib/t/MusicBrainz/Server/Controller/Artist/Aliases.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok page_test_jsonld );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether artist aliases are correctly listed on the artist
1313
alias page, both on the site itself and on the JSON-LD data.

t/lib/t/MusicBrainz/Server/Controller/Artist/AnnotationRevision.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Test::Routine;
66

77
with 't::Mechanize', 't::Context';
88

9-
=head2 Test description
9+
=head1 DESCRIPTION
1010
1111
This test checks whether artist annotation revision pages load,
1212
and whether they display the entirety of the annotation.

t/lib/t/MusicBrainz/Server/Controller/Artist/Create.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ with 't::Mechanize', 't::Context';
1111

1212
use aliased 'MusicBrainz::Server::Entity::PartialDate';
1313

14-
=head2 Test description
14+
=head1 DESCRIPTION
1515
1616
This test checks that the artist create form works properly with both complete
1717
and minimal data, plus some edge cases.

t/lib/t/MusicBrainz/Server/Controller/Artist/DeleteAlias.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks that artist alias deletion works, and that it requires
1414
an edit note.

t/lib/t/MusicBrainz/Server/Controller/Artist/Details.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks that the artist details page contains all the expected data.
1313

t/lib/t/MusicBrainz/Server/Controller/Artist/Edit.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether basic artist editing works, including when also
1414
updating artist credits.

t/lib/t/MusicBrainz/Server/Controller/Artist/EditAlias.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( capture_edits html_ok );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether alias editing for artists works, including whether
1414
the sort name defaults to the name when not explicitly entered (blanked).

t/lib/t/MusicBrainz/Server/Controller/Artist/EditExternalLinks.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use MusicBrainz::Server::Test qw( capture_edits );
1010

1111
with 't::Mechanize', 't::Context';
1212

13-
=head2 Test description
13+
=head1 DESCRIPTION
1414
1515
This test checks whether external links are correctly added, removed and
1616
modified when editing artists, and whether editing other parts of the artist

t/lib/t/MusicBrainz/Server/Controller/Artist/EditRelationships.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use MusicBrainz::Server::Test qw( capture_edits );
1818

1919
with 't::Context', 't::Mechanize';
2020

21-
=head2 Test description
21+
=head1 DESCRIPTION
2222
2323
This test checks whether non-URL relationships are correctly added, removed
2424
and modified when editing artists, including several edge cases.

t/lib/t/MusicBrainz/Server/Controller/Artist/Edits.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( accept_edit html_ok );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether artist edits are correctly listed under both the
1414
"all edits" and the "open edits" lists.

t/lib/t/MusicBrainz/Server/Controller/Artist/EligibleForCleanup.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether artists are correctly displayed as eligible for
1313
cleanup (in risk of being auto-removed).

t/lib/t/MusicBrainz/Server/Controller/Artist/Filtering.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( test_xpath_html );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether filtering works for different entity lists
1414
in artist pages (events, RGs, recordings, releases, works).

t/lib/t/MusicBrainz/Server/Controller/Artist/Merge.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ around run_test => sub {
3030

3131
with 't::Mechanize', 't::Context';
3232

33-
=head2 Test description
33+
=head1 DESCRIPTION
3434
3535
This test checks artist merges, and especially the artist credit renaming
3636
code.

t/lib/t/MusicBrainz/Server/Controller/Artist/Ratings.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( html_ok test_xpath_html );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether artist ratings are properly displayed on the ratings
1414
page, and that private ratings are hidden.

t/lib/t/MusicBrainz/Server/Controller/Artist/Recordings.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok page_test_jsonld );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether the artist recordings page properly displays
1313
recordings for the artist, both on the site itself and on the JSON-LD data.

t/lib/t/MusicBrainz/Server/Controller/Artist/Relationships.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok page_test_jsonld );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether the artist relationships page properly displays
1313
relationships for the artist, and also the expected JSON-LD data.

t/lib/t/MusicBrainz/Server/Controller/Artist/Releases.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether the artist releases page properly displays
1313
releases for the artist.

t/lib/t/MusicBrainz/Server/Controller/Artist/Show.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use MusicBrainz::Server::Test qw( html_ok page_test_jsonld );
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether basic artist data is correctly listed on an artist’s
1515
index (main) page both on the site itself and on the JSON-LD data.

t/lib/t/MusicBrainz/Server/Controller/Artist/Split.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ around run_test => sub {
2929

3030
with 't::Mechanize', 't::Context';
3131

32-
=head2 Test description
32+
=head1 DESCRIPTION
3333
3434
This test checks the artist split function, and whether it removes
3535
collaboration relationships as intended.

t/lib/t/MusicBrainz/Server/Controller/Artist/Tags.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use MusicBrainz::Server::Test qw( html_ok );
88

99
with 't::Mechanize', 't::Context';
1010

11-
=head2 Test description
11+
=head1 DESCRIPTION
1212
1313
This test checks whether artist tagging is working correctly. It checks both
1414
up- and downvoting, plus withdrawing/removing tags.

t/lib/t/MusicBrainz/Server/Controller/Artist/Works.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MusicBrainz::Server::Test qw( html_ok );
77

88
with 't::Mechanize', 't::Context';
99

10-
=head2 Test description
10+
=head1 DESCRIPTION
1111
1212
This test checks whether the artist releases page properly displays
1313
works for the artist.

t/lib/t/MusicBrainz/Server/Controller/ArtistCredit/Show.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use MusicBrainz::Server::Test qw( html_ok test_xpath_html );
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether basic artist credit data is correctly listed in an
1515
artist credit page, and whether trying to load a nonexistent artist credit

t/lib/t/MusicBrainz/Server/Controller/CDStub/Browse.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use Hook::LexWrap;
99

1010
with 't::Mechanize', 't::Context';
1111

12-
=head2 Test description
12+
=head1 DESCRIPTION
1313
1414
This test checks whether the Browse CD Stubs page shows data as expected.
1515

0 commit comments

Comments
 (0)