Skip to content

Commit

Permalink
Merge pull request #162 from biigle/patch-2
Browse files Browse the repository at this point in the history
Remove test case
  • Loading branch information
mzur authored Feb 23, 2024
2 parents 28b3240 + ab5bad6 commit 9a062cc
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/Jobs/GenerateAnnotationFeatureVectorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,29 +379,6 @@ public function testHandleCoodinatesOutsideImageBoth()
$box = $input[$filename][$tp->id];
$this->assertEquals([0, 0, 100, 100], $box);
}

public function testHandleCoodinatesSkipZero()
{
FileCache::fake();
$j = MaiaJob::factory()->create();
$tp = TrainingProposal::factory()->create([
'job_id' => $j->id,
'shape_id' => Shape::circleId(),
'points' => [10, 10, 0],
]);

$job = new GenerateProposalFeatureVectorsStub($j);
try {
$job->handle();
} finally {
if (isset($job->outputPath) && File::exists($job->outputPath)) {
File::delete($job->outputPath);
}
}

$this->assertFalse(isset($job->input));
$this->assertFalse(TrainingProposalFeatureVector::exists());
}
}


Expand Down

0 comments on commit 9a062cc

Please sign in to comment.