Commit f28df870 authored by Daniel Scheffler's avatar Daniel Scheffler Committed by Mathias Peters
Browse files

Added test_config.Test_JobConfig.test_inmem_serialization(). Updated version info.


Former-commit-id: b74dd554
parent cbe46e88
Pipeline #1980 failed with stage
in 11 minutes and 18 seconds
...@@ -15,8 +15,8 @@ from .processing.process_controller import process_controller # noqa: E402 ...@@ -15,8 +15,8 @@ from .processing.process_controller import process_controller # noqa: E402
__author__ = """Daniel Scheffler""" __author__ = """Daniel Scheffler"""
__email__ = 'daniel.scheffler@gfz-potsdam.de' __email__ = 'daniel.scheffler@gfz-potsdam.de'
__version__ = '0.12.5' __version__ = '0.12.6'
__versionalias__ = '20180129.02' __versionalias__ = '20180129.03'
__all__ = ['algorithms', __all__ = ['algorithms',
'io', 'io',
'misc', 'misc',
......
...@@ -26,7 +26,7 @@ test_requirements = requirements + ['coverage', 'nose', 'nose2', 'nose-htmloutpu ...@@ -26,7 +26,7 @@ test_requirements = requirements + ['coverage', 'nose', 'nose2', 'nose-htmloutpu
setup( setup(
name='gms_preprocessing', name='gms_preprocessing',
version='0.12.5', version='0.12.6',
description="GeoMultiSens - Scalable Multi-Sensor Analysis of Remote Sensing Data", description="GeoMultiSens - Scalable Multi-Sensor Analysis of Remote Sensing Data",
long_description=readme + '\n\n' + history, long_description=readme + '\n\n' + history,
author="Daniel Scheffler", author="Daniel Scheffler",
......
...@@ -40,6 +40,15 @@ class Test_JobConfig(TestCase): ...@@ -40,6 +40,15 @@ class Test_JobConfig(TestCase):
cfg = JobConfig(self.jobID, db_host=self.db_host) cfg = JobConfig(self.jobID, db_host=self.db_host)
self.assertIsInstance(cfg, JobConfig) self.assertIsInstance(cfg, JobConfig)
def test_inmem_serialization(self):
cfg = JobConfig(self.jobID, db_host=self.db_host, inmem_serialization=True)
self.assertIsInstance(cfg, JobConfig)
self.assertTrue(cfg.inmem_serialization is True)
cfg = JobConfig(self.jobID, db_host=self.db_host, inmem_serialization=False)
self.assertIsInstance(cfg, JobConfig)
self.assertTrue(cfg.inmem_serialization is False)
def test_jsonconfig_str_allfine(self): def test_jsonconfig_str_allfine(self):
cfg = '{"a": 1 /*comment*/, "b":2}' cfg = '{"a": 1 /*comment*/, "b":2}'
cfg = JobConfig(self.jobID, db_host=self.db_host, json_config=cfg) cfg = JobConfig(self.jobID, db_host=self.db_host, json_config=cfg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment