Skip to content

Commit

Permalink
disable maxDiff in LoggerStorageManager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisdoukas committed Mar 4, 2020
1 parent 48a4387 commit c32a2e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion cwlkernel/CoreExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,6 @@ def _parse_cwl_options(self, argsl):

@classmethod
def _init_cwl_logger(cls, logger_handler, stderr):
# _logger.removeHandler(defaultStreamHandler)
stderr_handler = logger_handler
if stderr_handler is not None:
_logger.addHandler(stderr_handler)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_CWLExecuteConfigurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
from cwlkernel.CWLExecuteConfigurator import CWLExecuteConfigurator


class TestCWLExecuteConfigurator(unittest.TestCase):
def test_load_CWLKERNEL_MODE(self):
conf = CWLExecuteConfigurator()
Expand All @@ -14,7 +15,6 @@ def test_load_CWLKERNEL_MODE(self):
os.environ['CWLKERNEL_MODE'] = 'something new'
self.assertRaises(RuntimeError, CWLExecuteConfigurator)


def test_load_CWLKERNEL_BOOT_DIRECTORY(self):
conf = CWLExecuteConfigurator()
self.assertEqual(conf.CWLKERNEL_BOOT_DIRECTORY, '/tmp/CWLKERNEL_DATA')
Expand All @@ -35,5 +35,6 @@ def tearDown(self) -> None:
except KeyError:
pass


if __name__ == '__main__':
unittest.main()
5 changes: 3 additions & 2 deletions tests/test_CWLLoggerStorageManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
import os
import tempfile
import unittest
from typing import List, Dict

from cwlkernel.CWLLoggerStorageManager import CWLLoggerStorageManager
from cwlkernel.CWLLogger import CWLLogger
from cwlkernel.CWLLoggerStorageManager import CWLLoggerStorageManager


class TestCWLLoggerStorageManager(unittest.TestCase):

maxDiff = None

def test_load(self):
storage_path = tempfile.mkdtemp()
logger_storage = CWLLoggerStorageManager(storage_path)
Expand Down

0 comments on commit c32a2e7

Please sign in to comment.