https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33053

Tomás Cohen Arazi <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
           Keywords|                            |additional_work_needed

--- Comment #6 from Tomás Cohen Arazi <[email protected]> ---
This patchset highlighted an issue, see:

I commented like this:

$ git diff
diff --git a/t/db_dependent/api/v1/item_groups.t
b/t/db_dependent/api/v1/item_groups.t
index 3506eae582d..8a823d121ec 100755
--- a/t/db_dependent/api/v1/item_groups.t
+++ b/t/db_dependent/api/v1/item_groups.t
@@ -112,11 +112,11 @@ subtest 'add() tests' => sub {

     # Invalid biblio id
     {   # hide useless warnings
-        local *STDERR;
-        open STDERR, '>', '/dev/null';
+        #local *STDERR;
+        #open STDERR, '>', '/dev/null';
         $t->post_ok(
"//$auth_userid:$password@/api/v1/biblios/XXX/item_groups" => json =>
$item_group )
             ->status_is( 404 );
-        close STDERR;
+        #close STDERR;
     }

     $schema->storage->txn_rollback;

And then:

$ prove t/db_dependent/api/v1/item_groups.t

t/db_dependent/api/v1/item_groups.t .. 1/5
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st
execute failed: Column 'biblio_id' cannot be null at
/kohadevbox/koha/Koha/Object.pm line 170

    #   Failed test '404 Not Found'
    #   at t/db_dependent/api/v1/item_groups.t line 117.
    #          got: '500'
    #     expected: '404'
    # Looks like you failed 1 test of 6.

#   Failed test 'add() tests'
#   at t/db_dependent/api/v1/item_groups.t line 123.

Please provide a fix!

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to