]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/replace.t
hval: from_attr: move to unit test
[public-inbox.git] / t / replace.t
index 57290f96edccef4e17db2be2b93a74dfb9e74058..085b49eea102c0cf7722bd4c89ac5de14515288c 100644 (file)
@@ -5,14 +5,10 @@ use warnings;
 use Test::More;
 use PublicInbox::MIME;
 use PublicInbox::InboxWritable;
-require './t/common.perl';
+use PublicInbox::TestCommon;
 use Cwd qw(abs_path);
 require_git(2.6); # replace is v2 only, for now...
-foreach my $mod (qw(DBD::SQLite)) {
-       eval "require $mod";
-       plan skip_all => "$mod missing for $0" if $@;
-}
-
+require_mods(qw(DBD::SQLite));
 local $ENV{HOME} = abs_path('t');
 
 sub test_replace ($$$) {