X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Finflate%2Fdatetime_oracle.t;h=af8c90b76ee281b0872ccc34c7007faef42d5858;hb=199fbc453ec03891d0e156d7353c5e992ba4de47;hp=c6c1324576cdff1a1756989740fbf4a5e8df5dcb;hpb=64b3598fcf53fcec068a67277d80363540f19427;p=dbsrgits%2FDBIx-Class.git diff --git a/t/inflate/datetime_oracle.t b/t/inflate/datetime_oracle.t index c6c1324..af8c90b 100644 --- a/t/inflate/datetime_oracle.t +++ b/t/inflate/datetime_oracle.t @@ -3,9 +3,13 @@ use warnings; use Test::More; use Test::Exception; +use DBIx::Class::Optional::Dependencies (); use lib qw(t/lib); use DBICTest; +plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_oracle') + unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_oracle'); + my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_ORA_${_}" } qw/DSN USER PASS/}; if (not ($dsn && $user && $pass)) { @@ -13,9 +17,6 @@ if (not ($dsn && $user && $pass)) { 'Warning: This test drops and creates a table called \'track\''; } -plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_oracle') - unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_oracle'); - # DateTime::Format::Oracle needs this set $ENV{NLS_DATE_FORMAT} = 'DD-MON-YY'; $ENV{NLS_TIMESTAMP_FORMAT} = 'YYYY-MM-DD HH24:MI:SSXFF';