From: djfiander Date: Tue, 27 Jun 2006 01:33:24 +0000 (+0000) Subject: Add code to check item in when done testing. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=951c3f63eaa8b7924f468de37ef03d4e6b58ca95;p=SIPServer.git Add code to check item in when done testing. --- diff --git a/t/03checkout.t b/t/03checkout.t index 5b7a8e4..36e3cbd 100644 --- a/t/03checkout.t +++ b/t/03checkout.t @@ -23,6 +23,13 @@ my $patron_disable_template = { pat => qr/^24Y{4}[ Y]{10}000$datepat/, fields => [], }; +my $checkin_template = { + id => 'Checkout: cleanup: check in item', + msg => '09N20050102 08423620060113 084235APUnder the bed|AOUWOLS|AB1565921879|ACterminal password|', + pat => qr/^10YYNN$datepat/, + fields => [], + }; + my $checkout_test_template = { id => 'Checkout: valid item, valid patron', msg => '11YN20060329 203000 AOUWOLS|AAdjfiander|AB1565921879|AC|', @@ -70,6 +77,7 @@ my @tests = ( $SIPtest::login_test, $SIPtest::sc_status_test, clone($checkout_test_template), + # Don't check the item in, because we're about to test renew ); my $test; @@ -84,6 +92,10 @@ $test->{pat} = qr/^121YNY$datepat/; push @tests, $test; +# NOW check it in + +push @tests, $checkin_template; + # Valid Patron, Invalid Item_id $test = clone($checkout_test_template);