File: 01-importer.t

package info (click to toggle)
libcatmandu-zotero-perl 0.07-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 136 kB
  • sloc: perl: 85; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;
use warnings;
use Test::More;

BEGIN { use_ok 'Catmandu::Importer::Zotero' }
require_ok 'Catmandu::Importer::Zotero';

# skip live testing by default (mock server instead)
if ($ENV{RELEASE_TESTING}) {
    my $importer = Catmandu::Importer::Zotero->new(
        userID => '475425',
    );

    my $record = $importer->first;
    ok $record , 'search';

    my $array = $importer->take(15)->to_array;
    ok @$array > 10 , '>10 results'
}

done_testing;