Passed
Push — web-timed ( cfeda2...1d9e3e )
by Matt
01:11
created

tests.json_config   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 9
dl 0
loc 21
rs 10
c 0
b 0
f 0
1
from PyDMXControl.controllers import uDMXController as Controller
2
3
# Create our controller
4
dmx = Controller()
5
6
# Load fixture in from json
7
dmx.json.load_config('json/load.json')
8
9
# Check fixture was loaded
10
dmx.all_locate()
11
12
# Save fixture back to json
13
print(dmx.json.save_config('json/save.json'))
14
15
# Start console debug for testing
16
dmx.debug_control()
17
18
# Close the controller once we're done
19
dmx.sleep_till_enter()
20
dmx.close()
21