• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python unit_test.DataSetTestCase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mi.idk.dataset.unit_test.DataSetTestCase的典型用法代码示例。如果您正苦于以下问题:Python DataSetTestCase类的具体用法?Python DataSetTestCase怎么用?Python DataSetTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了DataSetTestCase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1:

from pyon.agent.agent import ResourceAgentState
from interface.objects import CapabilityType
from interface.objects import AgentCapability
from interface.objects import ResourceAgentErrorEvent
from interface.objects import ResourceAgentConnectionLostErrorEvent


DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.issm.nutnrb.driver',
    driver_class='IssmRiNUTNRBDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = IssmRiNUTNRBDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.STORAGE_DIRECTORY: '/tmp/stored_dsatest',
            DataSetDriverConfigKeys.PATTERN: '*.log',
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

SAMPLE_STREAM = 'nutnrb_parsed'

###############################################################################
#                                INT TESTS                                    #
# Device specific integration tests are for                                   #
# testing device specific capabilities                                        #
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例2:

from mi.dataset.driver.mflm.phsen.driver import MflmPHSENDataSetDriver
from mi.dataset.parser.phsen import PhsenParserDataParticle

from pyon.agent.agent import ResourceAgentState
from interface.objects import ResourceAgentErrorEvent
from interface.objects import ResourceAgentConnectionLostErrorEvent

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.mflm.phsen.driver',
    driver_class='MflmPHSENDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = MflmPHSENDataSetDriver.stream_config(),
    startup_config = {
        'harvester':
        {
            'directory': '/tmp/dsatest',
            'pattern': 'node59p1.dat',
            'frequency': 1,
        },
        'parser': {}
    }
)

SAMPLE_STREAM = 'phsen_parsed'

###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
# testing device specific capabilities                                        #
###############################################################################
开发者ID:cwingard,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例3:

TELEM_FILE_TWO = "E00000002.DAT"

# Fill in driver details
DataSetTestCase.initialize(
    driver_module="mi.dataset.driver.WFP_ENG.STC_IMODEM.driver",
    driver_class="WFP_ENG__STC_IMODEM_DataSetDriver",
    agent_resource_id="123xyz",
    agent_name="Agent007",
    agent_packet_config=WFP_ENG__STC_IMODEM_DataSetDriver.stream_config(),
    startup_config={
        DataSourceConfigKey.RESOURCE_ID: "wfp_eng__stc_imodem",
        DataSourceConfigKey.HARVESTER: {
            DataTypeKey.WFP_ENG_STC_IMODEM_RECOVERED: {
                DataSetDriverConfigKeys.DIRECTORY: RECOV_DIR,
                DataSetDriverConfigKeys.PATTERN: "E*.DAT",
                DataSetDriverConfigKeys.FREQUENCY: 1,
            },
            DataTypeKey.WFP_ENG_STC_IMODEM_TELEMETERED: {
                DataSetDriverConfigKeys.DIRECTORY: TELEM_DIR,
                DataSetDriverConfigKeys.PATTERN: "E*.DAT",
                DataSetDriverConfigKeys.FREQUENCY: 1,
            },
        },
        DataSourceConfigKey.PARSER: {
            DataTypeKey.WFP_ENG_STC_IMODEM_RECOVERED: {},
            DataTypeKey.WFP_ENG_STC_IMODEM_TELEMETERED: {},
        },
    },
)

RECOV_PARTICLES = (
    WfpEngStcImodemStatusRecoveredDataParticle,
开发者ID:ooici,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例4:

from mi.core.instrument.instrument_driver import DriverEvent

from mi.dataset.dataset_driver import DataSourceConfigKey, DataSetDriverConfigKeys
from mi.dataset.driver.flord_l_wfp.sio_mule.driver import FlordLWfpSioMuleDataSetDriver
from mi.dataset.parser.flord_l_wfp_sio_mule import FlordLWfpSioMuleParserDataParticle, DataParticleType

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.flord_l_wfp.sio_mule.driver',
    driver_class='FlordLWfpSioMuleDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = FlordLWfpSioMuleDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.RESOURCE_ID: 'flord_l_wfp_sio_mule',
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.PATTERN: 'TestData.dat',  
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

SAMPLE_STREAM = 'flord_l_wfp_instrument'

# The integration and qualification tests generated here are suggested tests,
# but may not be enough to fully test your driver. Additional tests should be
# written as needed.
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:30,代码来源:test_driver.py


示例5:

from mi.dataset.dataset_driver import DriverParameter
from pyon.agent.agent import ResourceAgentState
from interface.objects import ResourceAgentErrorEvent

from mi.dataset.driver.issmcnsm.dosta.driver import IssmCnsmDOSTADDataSetDriver
from mi.dataset.parser.issmcnsm_dostad import Issmcnsm_dostadParserDataParticle

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.issmcnsm.dosta.driver',
    driver_class='IssmCnsmDOSTADDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = IssmCnsmDOSTADDataSetDriver.stream_config(),
    startup_config = {
        'harvester':
        {
            'directory': '/tmp/dsatest',
            'pattern': '*.dosta.log',
            'frequency': 1,
        },
        'parser': {}
    }
)

SAMPLE_STREAM = 'issmcnsm_dostad_parsed'

###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
# testing device specific capabilities                                        #
###############################################################################
开发者ID:cwingard,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例6:

from mi.dataset.driver.issmcnsm.dosta.driver import IssmCnsmDOSTADDataSetDriver
from mi.dataset.parser.issmcnsm_dostad import Issmcnsm_dostadParserDataParticle

RESOURCE_ID = 'dostad'

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.issmcnsm.dosta.driver',
    driver_class='IssmCnsmDOSTADDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = IssmCnsmDOSTADDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.RESOURCE_ID: RESOURCE_ID,
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.STORAGE_DIRECTORY: '/tmp/stored_dsatest',
            DataSetDriverConfigKeys.PATTERN: '*.dosta.log',
            DataSetDriverConfigKeys.FREQUENCY: 1,
            DataSetDriverConfigKeys.FILE_MOD_WAIT_TIME: 30,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

SAMPLE_STREAM = 'issmcnsm_dostad_parsed'

###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例7:

from pyon.agent.agent import ResourceAgentState

from interface.objects import CapabilityType
from interface.objects import AgentCapability
from interface.objects import ResourceAgentErrorEvent
from interface.objects import ResourceAgentConnectionLostErrorEvent

DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.wfp.paradk.driver',
    driver_class="WfpPARADKDataSetDriver",

    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = WfpPARADKDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.STORAGE_DIRECTORY: '/tmp/stored_dsatest',
            DataSetDriverConfigKeys.PATTERN: '*.TXT',
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

SAMPLE_STREAM='wfp_parad_k_parsed'

###############################################################################
#                                INT TESTS                                   #
# Device specific integration tests are for                                          #
# testing device specific capabilities                                        #
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例8:

from mi.dataset.parser.wfp_eng__stc_imodem import DataParticleType, Wfp_eng__stc_imodem_statusParserDataParticle
from mi.dataset.parser.wfp_eng__stc_imodem import Wfp_eng__stc_imodem_startParserDataParticle
from mi.dataset.parser.wfp_eng__stc_imodem import Wfp_eng__stc_imodem_engineeringParserDataParticle
from pyon.agent.agent import ResourceAgentState
from interface.objects import ResourceAgentErrorEvent

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.WFP_ENG.STC_IMODEM.driver',
    driver_class='WFP_ENG__STC_IMODEM_DataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = WFP_ENG__STC_IMODEM_DataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.RESOURCE_ID: 'wfp_eng__stc_imodem',
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.PATTERN: 'E*.DAT',
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
# testing device specific capabilities                                        #
###############################################################################
@attr('INT', group='mi')
开发者ID:StevenMyerson,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例9:

from interface.objects import ResourceAgentErrorEvent

from mi.dataset.driver.RTE.STC.driver import RteOStcDataSetDriver
from mi.dataset.parser.rte_o_stc import RteOStcParserDataParticle


# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.RTE.STC.driver',
    driver_class='RteOStcDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = RteOStcDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.RESOURCE_ID: 'rte_o_stc',
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.PATTERN: '*.rte.log',
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

SAMPLE_STREAM = 'rte_xx__stc_instrument'

###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
# testing device specific capabilities                                        #
开发者ID:j2project,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例10:

from mi.dataset.dataset_driver import DriverParameter
from mi.dataset.dataset_driver import DataSourceConfigKey, DataSetDriverConfigKeys
from mi.dataset.driver.ctdpf_ckl.wfp.driver import CtdpfCklWfpDataSetDriver
from mi.dataset.parser.ctdpf_ckl_wfp import CtdpfCklWfpParserDataParticle, DataParticleType
from mi.dataset.parser.wfp_c_file_common import StateKey

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.ctdpf_ckl.wfp.driver',
    driver_class='CtdpfCklWfpDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = CtdpfCklWfpDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.RESOURCE_ID: 'ctdpf_ckl_wfp',
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.PATTERN: 'C*.DAT',
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)


# The integration and qualification tests generated here are suggested tests,
# but may not be enough to fully test your driver. Additional tests should be
# written as needed.

###############################################################################
开发者ID:StevenMyerson,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例11:

from mi.dataset.parser.ctdmo import CtdmoParserDataParticle, DataParticleType
from mi.dataset.parser.ctdmo import CtdmoOffsetDataParticle

TELEM_DIR = '/tmp/dsatest'

DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.mflm.ctd.driver',
    driver_class="MflmCTDMODataSetDriver",
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = MflmCTDMODataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.HARVESTER:
        {
            DataSourceKey.CTDMO_GHQR_SIO_MULE:
            {
                DataSetDriverConfigKeys.DIRECTORY: TELEM_DIR,
                DataSetDriverConfigKeys.PATTERN: 'node59p1.dat',
                DataSetDriverConfigKeys.FREQUENCY: 1,
                DataSetDriverConfigKeys.FILE_MOD_WAIT_TIME: 30,
            }
        },
        DataSourceConfigKey.PARSER: {
            DataSourceKey.CTDMO_GHQR_SIO_MULE: {'inductive_id': 55}
        }
    }
)


###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
开发者ID:StevenMyerson,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例12:

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.PARAD_K.STC_IMODEM.driver',
    driver_class='PARAD_K_STC_IMODEM_DataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = PARAD_K_STC_IMODEM_DataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.RESOURCE_ID: 'parad_k_stc_imodem',
        DataSourceConfigKey.HARVESTER:
        {
            DataTypeKey.PARAD_K_STC:
            {
                DataSetDriverConfigKeys.DIRECTORY: DIR_TEL,
                DataSetDriverConfigKeys.PATTERN: 'E*.DAT',
                DataSetDriverConfigKeys.FREQUENCY: 1,
            },
            DataTypeKey.PARAD_K_STC_RECOVERED:
            {
                DataSetDriverConfigKeys.DIRECTORY: DIR_REC,
                DataSetDriverConfigKeys.PATTERN: 'E*.DAT',
                DataSetDriverConfigKeys.FREQUENCY: 1,
            }
        },
        DataSourceConfigKey.PARSER:
        {
            DataTypeKey.PARAD_K_STC: {},
            DataTypeKey.PARAD_K_STC_RECOVERED: {}
        }
    }
)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例13:

# Driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.ctdpf_j.cspp.driver',
    driver_class='CtdpfJCsppDataSetDriver',
    agent_resource_id='123xyz',
    agent_name='Agent007',
    agent_packet_config=CtdpfJCsppDataSetDriver.stream_config(),
    startup_config={
        DataSourceConfigKey.RESOURCE_ID: 'ctdpf_j_cspp',
        DataSourceConfigKey.HARVESTER:
        {
            DataTypeKey.CTDPF_J_CSPP_TELEMETERED: {
                DataSetDriverConfigKeys.DIRECTORY: DIR_CTDPF_TELEMETERED,
                DataSetDriverConfigKeys.PATTERN: CTDPF_TEL_PATTERN,
                DataSetDriverConfigKeys.FREQUENCY: 1,
            },
            DataTypeKey.CTDPF_J_CSPP_RECOVERED: {
                DataSetDriverConfigKeys.DIRECTORY: DIR_CTDPF_RECOVERED,
                DataSetDriverConfigKeys.PATTERN: CTDPF_REC_PATTERN,
                DataSetDriverConfigKeys.FREQUENCY: 1,
            }
        },
        DataSourceConfigKey.PARSER: {
            DataTypeKey.CTDPF_J_CSPP_TELEMETERED: {},
            DataTypeKey.CTDPF_J_CSPP_RECOVERED: {}
        }
    }
)

REC_PARTICLES = (CtdpfJCsppMetadataRecoveredDataParticle,
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:30,代码来源:test_driver.py


示例14:

from mi.dataset.parser.dostad import DostadParserDataParticle

from pyon.agent.agent import ResourceAgentState
from interface.objects import ResourceAgentErrorEvent
from interface.objects import ResourceAgentConnectionLostErrorEvent


DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.mflm.dosta.driver',
    driver_class='MflmDOSTADDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = MflmDOSTADDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.STORAGE_DIRECTORY: '/tmp/stored_dsatest',
            DataSetDriverConfigKeys.PATTERN: 'node59p1.dat',
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

SAMPLE_STREAM = 'dostad_parsed'

###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
# testing device specific capabilities                                        #
开发者ID:j2project,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例15:

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.spkir_abj.dcl.driver',
    driver_class='SpkirAbjDclDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = SpkirAbjDclDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.HARVESTER:
        {
            DataTypeKey.SPKIR_ABJ_RECOVERED:
            {
                DataSetDriverConfigKeys.DIRECTORY: REC_DIR,
                DataSetDriverConfigKeys.PATTERN: '[0-9]*.spkir*.log',
                DataSetDriverConfigKeys.FREQUENCY: 1,
                DataSetDriverConfigKeys.FILE_MOD_WAIT_TIME: 30,
            },
            DataTypeKey.SPKIR_ABJ_TELEMETERED:
            {
                DataSetDriverConfigKeys.DIRECTORY: TEL_DIR,
                DataSetDriverConfigKeys.PATTERN: '[0-9]*.spkir*.log',
                DataSetDriverConfigKeys.FREQUENCY: 1,
                DataSetDriverConfigKeys.FILE_MOD_WAIT_TIME: 30,
            },
        },
        DataSourceConfigKey.PARSER: {
            DataTypeKey.SPKIR_ABJ_RECOVERED: {},
            DataTypeKey.SPKIR_ABJ_TELEMETERED: {}
        }
    }
)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例16:

from interface.objects import ResourceAgentErrorEvent
from interface.objects import ResourceAgentConnectionLostErrorEvent

DATADIR = "/tmp/dsatest"
STORAGEDIR = "/tmp/stored_dsatest"
RESOURCE_ID = "ctdgv"

DataSetTestCase.initialize(
    driver_module="mi.dataset.driver.moas.gl.ctdgv.driver",
    driver_class="CTDGVDataSetDriver",
    agent_resource_id="123xyz",
    agent_name="Agent007",
    agent_packet_config=CTDGVDataSetDriver.stream_config(),
    startup_config={
        DataSourceConfigKey.RESOURCE_ID: RESOURCE_ID,
        DataSourceConfigKey.HARVESTER: {
            DataSetDriverConfigKeys.DIRECTORY: DATADIR,
            DataSetDriverConfigKeys.STORAGE_DIRECTORY: STORAGEDIR,
            DataSetDriverConfigKeys.PATTERN: "*.mrg",
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {},
    },
)

SAMPLE_STREAM = "ggldr_ctdgv_delayed"

###############################################################################
#                                UNIT TESTS                                   #
# Device specific unit tests are for                                          #
# testing device specific capabilities                                        #
开发者ID:jdosher,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例17:

REC_STREAM = DataParticleType.REC_INSTRUMENT_PARTICLE
TEL_STREAM = DataParticleType.TEL_INSTRUMENT_PARTICLE

# Fill in driver details
DataSetTestCase.initialize(
    driver_module="mi.dataset.driver.dosta_abcdjm.dcl.driver",
    driver_class="DostaAbcdjmDclDataSetDriver",
    agent_resource_id="123xyz",
    agent_name="Agent007",
    agent_packet_config=DostaAbcdjmDclDataSetDriver.stream_config(),
    startup_config={
        DataSourceConfigKey.HARVESTER: {
            DataTypeKey.DOSTA_ABCDJM_RECOVERED: {
                DataSetDriverConfigKeys.DIRECTORY: REC_DIR,
                DataSetDriverConfigKeys.PATTERN: "[0-9]*.dosta*.log",
                DataSetDriverConfigKeys.FREQUENCY: 1,
                DataSetDriverConfigKeys.FILE_MOD_WAIT_TIME: 30,
            },
            DataTypeKey.DOSTA_ABCDJM_TELEMETERED: {
                DataSetDriverConfigKeys.DIRECTORY: TEL_DIR,
                DataSetDriverConfigKeys.PATTERN: "[0-9]*.dosta*.log",
                DataSetDriverConfigKeys.FREQUENCY: 1,
                DataSetDriverConfigKeys.FILE_MOD_WAIT_TIME: 30,
            },
        },
        DataSourceConfigKey.PARSER: {DataTypeKey.DOSTA_ABCDJM_RECOVERED: {}, DataTypeKey.DOSTA_ABCDJM_TELEMETERED: {}},
    },
)

# The integration and qualification tests generated here are suggested tests,
# but may not be enough to fully test your driver. Additional tests should be
# written as needed.
开发者ID:ooici,项目名称:marine-integrations,代码行数:32,代码来源:test_driver.py


示例18:

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.adcps_jln.stc.driver',
    driver_class='AdcpsJlnStcDataSetDriver',
    agent_resource_id='123xyz',
    agent_name='Agent007',
    agent_packet_config=AdcpsJlnStcDataSetDriver.stream_config(),
    startup_config={
        DataSourceConfigKey.RESOURCE_ID: 'adcps_jln_stc',
        DataSourceConfigKey.HARVESTER:
        {
            DataTypeKey.ADCPS_JLN_STC:
            {
                DataSetDriverConfigKeys.DIRECTORY: ADCPS_JLN_TELEM_DIR,
                DataSetDriverConfigKeys.PATTERN: 'adcp[st]_*.DAT',
                DataSetDriverConfigKeys.FREQUENCY: 1,
            },
            DataTypeKey.ADCPS_JLN:
            {
                DataSetDriverConfigKeys.DIRECTORY: ADCPS_JLN_RECOVERED_DIR,
                DataSetDriverConfigKeys.PATTERN: '*.PD0',
                DataSetDriverConfigKeys.FREQUENCY: 1,
            }
        },
        DataSourceConfigKey.PARSER: {
            DataTypeKey.ADCPS_JLN_STC: {},
            DataTypeKey.ADCPS_JLN: {}

        }
    }
)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py


示例19:

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.moas.gl.adcpa.driver',
    driver_class='AdcpaDataSetDriver',
    agent_resource_id='123xyz',
    agent_name='Agent007',
    agent_packet_config=AdcpaDataSetDriver.stream_config(),
    startup_config={
        DataSourceConfigKey.RESOURCE_ID: 'moas_gl_adcpa',
        DataSourceConfigKey.HARVESTER:
        {
            DataTypeKey.ADCPA_INSTRUMENT:
            {
                DataSetDriverConfigKeys.DIRECTORY: DIR_ADCPA_LIVE,
                DataSetDriverConfigKeys.PATTERN: '*.PD0',
                DataSetDriverConfigKeys.FREQUENCY: 1,
            },
            DataTypeKey.ADCPA_RECOVERED:
            {
                DataSetDriverConfigKeys.DIRECTORY: DIR_ADCPA_RECOVERED,
                DataSetDriverConfigKeys.PATTERN: '*.PD0',
                DataSetDriverConfigKeys.FREQUENCY: 1,
            }
        },
        DataSourceConfigKey.PARSER: {
            DataTypeKey.ADCPA_INSTRUMENT: {},
            DataTypeKey.ADCPA_RECOVERED: {}
        }
    }
)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:30,代码来源:test_driver.py


示例20:

from mi.dataset.dataset_driver import DriverParameter
from mi.dataset.dataset_driver import DataSourceConfigKey, DataSetDriverConfigKeys
from mi.dataset.driver.adcps_jln.stc.driver import AdcpsJlnStcDataSetDriver
from mi.dataset.parser.adcps_jln_stc import AdcpsJlnStcInstrumentParserDataParticle, DataParticleType
from mi.dataset.parser.adcps_jln_stc import AdcpsJlnStcMetadataParserDataParticle

# Fill in driver details
DataSetTestCase.initialize(
    driver_module='mi.dataset.driver.adcps_jln.stc.driver',
    driver_class='AdcpsJlnStcDataSetDriver',
    agent_resource_id = '123xyz',
    agent_name = 'Agent007',
    agent_packet_config = AdcpsJlnStcDataSetDriver.stream_config(),
    startup_config = {
        DataSourceConfigKey.RESOURCE_ID: 'adcps_jln_stc',
        DataSourceConfigKey.HARVESTER:
        {
            DataSetDriverConfigKeys.DIRECTORY: '/tmp/dsatest',
            DataSetDriverConfigKeys.PATTERN: 'adcp[st]_*.DAT',
            DataSetDriverConfigKeys.FREQUENCY: 1,
        },
        DataSourceConfigKey.PARSER: {}
    }
)

###############################################################################
#                            INTEGRATION TESTS                                #
# Device specific integration tests are for                                   #
# testing device specific capabilities                                        #
###############################################################################
@attr('INT', group='mi')
开发者ID:StevenMyerson,项目名称:marine-integrations,代码行数:31,代码来源:test_driver.py



注:本文中的mi.idk.dataset.unit_test.DataSetTestCase类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python driver_generator.DriverGenerator类代码示例发布时间:2022-05-27
下一篇:
Python comm_config.CommConfig类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap