Browse files

Removed test to check for duplicate load of same version of ontology

  • Loading branch information...
1 parent b7bd0e9 commit e129509e9db73310b5903d0f62a1cac01384763a @cybersiddhu cybersiddhu committed Jan 21, 2014
Showing with 3 additions and 5 deletions.
  1. +3 −5 t/loader/obo2chado-core-update.t
View
8 t/loader/obo2chado-core-update.t
@@ -6,14 +6,15 @@ use Test::Chado qw/:all/;
use Test::Chado::Common qw/:all/;
use Test::Chado::Cvterm qw/:all/;
use File::Temp qw/tmpnam/;
+use Log::Log4perl;
my $data_dir = Path::Class::Dir->new($Bin)->parent->subdir('test_data');
my $obo_fixture = $data_dir->subdir('preset')->file('cvprop.tar.bz2');
use_ok('Modware::Load');
subtest 'updating ontology' => sub {
- my $tmpfile = tmpnam();
+ $Log::Log4perl::LOGEXIT_CODE = 1;
my $schema = chado_schema( custom_fixture => $obo_fixture );
my $dbmanager = get_dbmanager_instance();
my $loader = new_ok('Modware::Load');
@@ -22,15 +23,12 @@ subtest 'updating ontology' => sub {
$dbmanager->dsn, '--user',
$dbmanager->user, '--password',
$dbmanager->password, '--input',
- $data_dir->subdir('obo')->file('eco_v2.00.obo'), '--logfile',
- $tmpfile
+ $data_dir->subdir('obo')->file('eco_v2.00.obo'),
);
push @ARGV, '--pg_schema', $dbmanager->schema_namespace
if $dbmanager->can('schema_namespace');
lives_ok { $loader->run } "should load eco obo file";
- dies_ok { $loader->run }
- "should not reload the existing version of ontology";
drop_schema();
};

0 comments on commit e129509

Please sign in to comment.