Skip to content

Commit

Permalink
linting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojmdavid committed Jun 18, 2021
1 parent cdda4b8 commit 3649bab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 25 deletions.
4 changes: 0 additions & 4 deletions tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
udocker unit tests: UdockerCLI
"""

# import sys
# sys.path.append('.')
# sys.path.append('../../')

from unittest import TestCase, main
from unittest.mock import Mock, patch
from udocker.config import Config
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_cmdparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""
udocker unit tests: CmdParser
"""

from unittest import TestCase, main
from udocker.cmdparser import CmdParser

Expand Down
8 changes: 1 addition & 7 deletions tests/unit/test_commonlocalfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@
udocker unit tests: CommonLocalFileApi
"""

import sys
from unittest import TestCase, main
from unittest.mock import Mock, patch
from udocker.commonlocalfile import CommonLocalFileApi
try:
from unittest.mock import Mock, MagicMock, patch, mock_open
except ImportError:
from mock import Mock, MagicMock, patch, mock_open

sys.path.append('.')


class CommonLocalFileApiTestCase(TestCase):
Expand Down
16 changes: 2 additions & 14 deletions tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,11 @@
udocker unit tests: Config
"""

import sys
from unittest import TestCase, main
from unittest.mock import patch
from udocker.config import Config

try:
from unittest.mock import patch
except ImportError:
from mock import patch
try:
from StringIO import StringIO
except ImportError:
from io import StringIO

if sys.version_info[0] >= 3:
BUILTINS = "builtins"
else:
BUILTINS = "__builtin__"
BUILTINS = "builtins"


class ConfigTestCase(TestCase):
Expand Down

0 comments on commit 3649bab

Please sign in to comment.