Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
Broken by d853ac0
  • Loading branch information
kimrutherford committed Mar 13, 2024
1 parent 6a314c0 commit 5de90c0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/Canto/Track/CurationLoad.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,15 @@ sub _process_row
my $uniquename = $Canto::Track::PubmedUtil::PUBMED_PREFIX . ":$pubmed_id";
my $pub = $self->load_util()->get_pub($uniquename, 'admin_load');
my $lab_head = $self->load_util()->get_person($lab_head_name, $lab_head_email,
$user_cvterm, $lab_head_email,
"0000-0000-0001-$suffix");
"0000-0000-0001-$suffix", $user_cvterm);
my $lab = $self->load_util()->get_lab($lab_head);
my $submitter = undef;

$suffix++;

if ($submitter_email) {
$submitter = $self->load_util()->get_person($submitter_name, $submitter_email,
$user_cvterm, $submitter_email,
"0000-0000-0001-$suffix");
"0000-0000-0001-$suffix", $user_cvterm);
$suffix++;
}

Expand Down Expand Up @@ -151,15 +149,15 @@ sub load

# get_person() creates the person if not found
$self->load_util()->get_person('Val Wood', '[email protected]',
$admin_cvterm, '[email protected]', '0000-0000-0000-123X');
'0000-0000-0000-123X', $admin_cvterm);
my $dr_harris =
$self->load_util()->get_person('Midori Harris', '[email protected]',
$admin_cvterm, '[email protected]', '0000-0000-0000-200X');
'0000-0000-0000-200X', $admin_cvterm);
$dr_harris->known_as("Dr Harris");
$dr_harris->update();

$self->load_util()->get_person('Antonia Nilsson', '[email protected]',
$admin_cvterm, '[email protected]', '0000-0000-0000-300X');
'0000-0000-0000-300X', $admin_cvterm);

my $csv = Text::CSV->new({binary => 1});
open my $curation_io, '<', $curation_file or die;
Expand Down

0 comments on commit 5de90c0

Please sign in to comment.