Skip to content

Commit

Permalink
fix(tests): fix test problems with isort >=6.0.0
Browse files Browse the repository at this point in the history
- Forces isort>=6.0.0 to make sure tests pass and fixes code style errors.

Co-Authored-by: Pascal Repond <[email protected]>
  • Loading branch information
PascalRepond committed Feb 4, 2025
1 parent 9d7de8c commit 0c35589
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 11 deletions.
25 changes: 18 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ dependencies = [
"unidecode (>=1.3.8)",
"flask-menu (<2.0.0)",
"poethepoet",
"isort (>=6.0.0)",
]

[project.optional-dependencies]
Expand Down
4 changes: 3 additions & 1 deletion rero_ils/modules/serializers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

"""RERO ILS Record serialization."""

from invenio_records_rest.serializers.response import record_responsify
from invenio_records_rest.serializers.response import (
record_responsify,
)
from invenio_records_rest.serializers.response import (
search_responsify as _search_responsify,
)
Expand Down
4 changes: 3 additions & 1 deletion rero_ils/modules/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
manage_role_permissions,
)
from .permissions import permission_management as permission_management_action
from .permissions import record_permissions
from .permissions import (
record_permissions,
)

api_blueprint = Blueprint("api_blueprint", __name__, url_prefix="")

Expand Down
4 changes: 3 additions & 1 deletion tests/ui/patron_transactions/test_patron_transactions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

import pytest

from rero_ils.modules.patron_transactions.api import PatronTransaction
from rero_ils.modules.patron_transactions.api import (
PatronTransaction,
)
from rero_ils.modules.patron_transactions.api import (
patron_transaction_id_fetcher as fetcher,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

""""Test permissions."""
"""Test permissions."""
from utils import login_user_for_view

from rero_ils.modules.permissions import has_superuser_access
Expand Down

0 comments on commit 0c35589

Please sign in to comment.