Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth committed Nov 28, 2023
1 parent 78e01a1 commit e1625a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cubi_tk/irods_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import attrs
from irods.exception import (
CAT_INVALID_AUTHENTICATION,
PAM_AUTH_PASSWORD_FAILED,
CAT_PASSWORD_EXPIRED,
CAT_INVALID_USER,
CAT_PASSWORD_EXPIRED,
PAM_AUTH_PASSWORD_FAILED,
)
from irods.password_obfuscation import encode
from irods.session import NonAnonymousLoginWithoutPassword, iRODSSession
Expand Down
5 changes: 2 additions & 3 deletions tests/test_irods_common.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from pathlib import Path
import shutil
from unittest.mock import ANY, call, MagicMock, patch
from unittest.mock import ANY, MagicMock, call, patch

import irods.exception
from irods.session import NonAnonymousLoginWithoutPassword
import pytest

from cubi_tk.irods_common import TransferJob, iRODSCommon, iRODSTransfer
Expand All @@ -23,6 +21,7 @@ def test_common_init(mocksession):
assert type(iRODSCommon().ask) is bool
assert iRODSCommon().session is mocksession.return_value


@patch("cubi_tk.irods_common.iRODSSession")
def test_get_irods_error(mocksession):
e = irods.exception.NetworkException()
Expand Down

0 comments on commit e1625a8

Please sign in to comment.