Skip to content

Commit 5b6c132

Browse files
author
Alan Christie
committed
- Adds basic test for utils
1 parent fd7a361 commit 5b6c132

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

src/python/pipelines_utils/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
from __future__ import print_function
1919
import sys, gzip, json, uuid
2020
from math import log10, floor
21-
from pipelines_utils import BasicObjectWriter, TsvWriter
21+
from pipelines_utils.BasicObjectWriter import BasicObjectWriter
22+
from pipelines_utils.TsvWriter import TsvWriter
2223

2324
def log(*args, **kwargs):
2425
"""

src/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_long_description():
1313
setup(
1414

1515
name='im-pipelines-utils',
16-
version='2.0.0',
16+
version='2.1.0',
1717
author='Alan Christie',
1818
author_email='[email protected]',
1919
url='https://github.com/InformaticsMatters/pipelines-utils',

src/python/test/pipelines_utils/test_utils.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ def test_round_sig(self):
1515
self.assertEquals(utils.round_sig(0.00456789, 3), 0.00457)
1616

1717
self.assertEquals(utils.round_sig(-1.23456789, 6), -1.23457)
18+
19+
def test_create_simple_writer_for_json(self):
20+
"""Just check the very basics
21+
"""
22+
writer = utils.create_simple_writer('experiment', None, 'json', None)
23+
self.assertTrue(writer is not None)
24+
25+
def test_create_simple_writer_for_tsv(self):
26+
"""Just check the very basics
27+
"""
28+
writer = utils.create_simple_writer('experiment', None, 'tsv', None)
29+
self.assertTrue(writer is not None)

src/python/test/rdkit_utils/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)