X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2FGruntmaster-Data.t;h=38c2330fcf3219501264cf9289571e4c27d86290;hb=cab36bc417a7d8723aeef55269adc8f2425d8e99;hp=0b325a3ff637c87b1c1f3fa8e7f169688675df4d;hpb=b69781c1e813454383f9890792d3c2b35d747bd4;p=gruntmaster-data.git diff --git a/t/Gruntmaster-Data.t b/t/Gruntmaster-Data.t index 0b325a3..38c2330 100644 --- a/t/Gruntmaster-Data.t +++ b/t/Gruntmaster-Data.t @@ -10,7 +10,7 @@ BEGIN { eval { Gruntmaster::Data::init 'dbi:Pg:dbname=gmtest'; 1; } or plan skip_all => 'Cannot connect to test database. Create it by running createdb gmtest before running this test. '. "Error: $@"; - plan tests => 35; + plan tests => 33; } note 'Setting up test database'; @@ -67,9 +67,6 @@ cmp_bag ids, [qw/pc rc fc/], 'contest_list'; $x = contest_entry 'fc'; cmp_deeply $x, {id => 'fc', name => 'Finished contest', start => ignore, stop => ignore, owner => 'MGV', owner_name => undef, finished => bool (1), started => bool (1), description => undef}, 'contest_entry fc'; -$x = contest_full 'fc'; -ok exists $x->{editorial}, 'contest_full fc has editorial'; - ok contest_has_problem('rc', 'rca'), 'contest rc has problem rca'; ok contest_has_problem('rc', 'arc'), 'contest rc does not have problem arc'; @@ -104,9 +101,6 @@ is_deeply $x->{results}, [], 'job_entry results'; $x = job_entry 7; ok !defined $x->{result}, 'job_entry 7 has NULL result'; -$x = job_full 1; -ok exists $x->{source}, 'job_full has source'; - $x = standings 'fc'; is_deeply $x, { problems => [[fca => 'FC problem A']],