Commit 3b5c5686 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
Former-commit-id: f28df870
parent e26deccb
Pipeline #2510 canceled with stage
......@@ -15,8 +15,8 @@ from .processing.process_controller import process_controller # noqa: E402
__author__ = """Daniel Scheffler"""
__email__ = 'daniel.scheffler@gfz-potsdam.de'
__version__ = '0.12.5'
__versionalias__ = '20180129.02'
__version__ = '0.12.6'
__versionalias__ = '20180129.03'
__all__ = ['algorithms',
'io',
'misc',
......
......@@ -26,7 +26,7 @@ test_requirements = requirements + ['coverage', 'nose', 'nose2', 'nose-htmloutpu
setup(
name='gms_preprocessing',
version='0.12.5',
version='0.12.6',
description="GeoMultiSens - Scalable Multi-Sensor Analysis of Remote Sensing Data",
long_description=readme + '\n\n' + history,
author="Daniel Scheffler",
......
......@@ -40,6 +40,15 @@ class Test_JobConfig(TestCase):
cfg = JobConfig(self.jobID, db_host=self.db_host)
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):
cfg = '{"a": 1 /*comment*/, "b":2}'
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