1 use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_prettydebug';
10 BEGIN { delete @ENV{qw(DBIC_TRACE_PROFILE)} }
13 my $schema = DBICTest->init_schema;
15 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Statistics');
19 local $ENV{DBIC_TRACE_PROFILE} = 'console';
21 my $schema = DBICTest->init_schema;
23 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Debug::PrettyPrint');;
24 is($schema->storage->debugobj->_sqlat->indent_string, ' ', 'indent string set correctly from console profile');
28 local $ENV{DBIC_TRACE_PROFILE} = './t/lib/awesome.json';
30 my $schema = DBICTest->init_schema;
32 isa_ok($schema->storage->debugobj, 'DBIx::Class::Storage::Debug::PrettyPrint');;
33 is($schema->storage->debugobj->_sqlat->indent_string, 'frioux', 'indent string set correctly from file-based profile');