Skip to content

Commit

Permalink
Fix db connection in t/16-markdown.t
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Nov 13, 2023
1 parent 2af1b5c commit d27fca5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/16-markdown.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ use Test::Warnings ':report_warnings';

use FindBin;
use lib "$FindBin::Bin/lib", "$FindBin::Bin/../external/os-autoinst-common/lib";
use OpenQA::Test::Case;
use OpenQA::Test::TimeLimit '10';
use OpenQA::Markdown qw(bugref_to_html is_light_color markdown_to_html);

my $test_case = OpenQA::Test::Case->new;
my $schema = $test_case->init_data(fixtures_glob => '01-jobs.pl 03-users.pl 05-job_modules.pl');
my $t = Test::Mojo->new('OpenQA::WebAPI');
$schema->txn_begin;

subtest 'standard markdown' => sub {
is markdown_to_html('Test'), "<p>Test</p>\n", 'HTML rendered';
Expand Down

0 comments on commit d27fca5

Please sign in to comment.