Skip to content

Fix ORM SQL integration test columns comparison#1398

Merged
cmadjar merged 1 commit intoaces:mainfrom
MaximeBICMTL:fix_orm_sql_columns_integration_test
Mar 23, 2026
Merged

Fix ORM SQL integration test columns comparison#1398
cmadjar merged 1 commit intoaces:mainfrom
MaximeBICMTL:fix_orm_sql_columns_integration_test

Conversation

@MaximeBICMTL
Copy link
Contributor

Description

I was surprised to see that the integration tests are succeeding given that there are recent updates on the LORIS SQL schema that are not yet reflected in the LORIS Python ORM models. But it turns out there is a small bug in the integration test: list_a.sort() is compared with list_b.sort(), but .sort() sorts a list in-place and always returns None ! The correct solution is to use sorted(list) which returns the sorted list.

@github-actions github-actions bot added the Language: Python Issue or PR related to the Python codebase label Mar 21, 2026
@MaximeBICMTL MaximeBICMTL added Category: Bug Issue or PR that aims to report or fix a bug Area: CI Issue or PR related to continuous integration, including automated tests and static checks Complexity: Simple Issue or PR that should be simple to implement, review, or test Area: ORM Issue or PR related to the SQLAlchemy integration labels Mar 21, 2026
@MaximeBICMTL MaximeBICMTL self-assigned this Mar 22, 2026
@MaximeBICMTL MaximeBICMTL added Complexity: Trivial Issue or PR whose implementation is obviously correct and no-risk (typo, formatting...) and removed Complexity: Simple Issue or PR that should be simple to implement, review, or test labels Mar 22, 2026
@cmadjar cmadjar merged commit 26601a4 into aces:main Mar 23, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: CI Issue or PR related to continuous integration, including automated tests and static checks Area: ORM Issue or PR related to the SQLAlchemy integration Category: Bug Issue or PR that aims to report or fix a bug Complexity: Trivial Issue or PR whose implementation is obviously correct and no-risk (typo, formatting...) Language: Python Issue or PR related to the Python codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants