Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

"""This module holds the automated tests for DGILib.""" 

 

from pydgilib_extra import ( 

DGILibExtra, LOGGER_CSV, LOGGER_OBJECT, INTERFACE_POWER, INTERFACE_GPIO) 

 

 

def test_logger_log(): 

"""test_logger_log.""" 

config_dict = { 

"interfaces": [INTERFACE_POWER, INTERFACE_GPIO], 

"loggers": [LOGGER_OBJECT, LOGGER_CSV], 

"gpio_delay_time": 0.010795, 

} 

with DGILibExtra(**config_dict) as dgilib: 

dgilib.device_reset() 

data = dgilib.logger.log(1) 

assert len(data.gpio) 

assert len(data.power)