File: pagesjeunes.patch

package info (click to toggle)
libwww-search-perl 2.50.80-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,636 kB
  • sloc: perl: 9,723; sh: 132; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Author: Nicholas Bamber <nicholas@periapt.co.uk>
Subject: Do not prompt for network access
Last-Update: 2011-10-11
Forwarded: no
--- a/pagesjaunes/t/02search.t
+++ b/pagesjaunes/t/02search.t
@@ -1,11 +1,19 @@
-use Test;
-BEGIN { plan tests => 5 }
+use Test::More;
+#BEGIN { plan tests => 5 }
 use WWW::Search::Pagesjaunes;
 
 my $pj = WWW::Search::Pagesjaunes->new();
 
 $pj->{ua}->agent("test".time);
 
+if ($ENV{TEST_NETWORK}) {
+    plan tests => 5;
+}
+else {
+    plan skip_all => "no network";
+}
+
+
 $pj->find( nom => "palais de l'elyse", localite => "paris");
 my $r = $pj->results;