Thanks, Jonathan. Your pointer was very helpful. El lun, 11 jul 2022 6:27, Jonathan Druart <jonathan.dru...@gmail.com> escribió:
> I think the problem is that Koha::Checkouts::Renewals has 2 > ("virtual") FKs on the same column. > > t::lib::TestBuilder::_create_links is generating an object (/values) > for "checkout" and $col_values->{checkout _id} has the ID from the > checkout we generated. > THEN we are processing the next relationship, old_checkout, and > generate another checkout, but this time we pass the checkout_id > previously generated. As we cannot pass an AI value, TestBuilder > explodes with "Value not allowed for auto_incr issue_id in Issue". > I guess the fix would be to use the constraint's name instead of the > column's name. > > Le sam. 9 juil. 2022 à 02:18, Tomas Cohen Arazi <tomasco...@gmail.com> a > écrit : > > > > Hi all, I've been trying to track down a problem with TestBuilder tests. > The are failing (almost) randomly but I narrow it down to: > > > > - Koha::Checkouts::Renewals > > - Koha::Biblio::ItemGroup::Items > > > > I ran out of fuel today, but it would be great if some more eyes were > put on this, so I can move on with pushing new stuffs with a happy test > suite. This is the subset of TestBuilder.t that I'm looking at (put it in > t/db_dependent/test.t): > > > > https://paste.koha-community.org/10864 > > > > My feeling is TestBuilder->_should_be_fk is not working as it should > (for Koha::Checkouts::Renewals) and about Koha::Biblio::ItemGroup::Items, > all I can say is that the table is a linking table, pretty much like the > club holds one. > > > > Thanks in advance and have a great weekend! > > > > -- > > Tomás Cohen Arazi > > Theke Solutions (http://theke.io) > > ✆ +54 9351 3513384 > > GPG: B2F3C15F > > _______________________________________________ > > Koha-devel mailing list > > Koha-devel@lists.koha-community.org > > https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel > > website : https://www.koha-community.org/ > > git : https://git.koha-community.org/ > > bugs : https://bugs.koha-community.org/ >
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/