mirror of
https://github.com/naruxde/revpimodio2.git
synced 2026-09-30 23:04:29 +02:00
test: Configuration errors in config.rsc
This commit is contained in:
1 parent
1e331feb2f
commit
442071c212
4 files changed
+1622
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Test errors in config.rsc"""
|
||||
__author__ = "Sven Sager"
|
||||
__copyright__ = "Copyright (C) 2024 Sven Sager"
|
||||
__license__ = "GPLv2"
|
||||
|
||||
from os.path import dirname
|
||||
|
||||
from tests import TestRevPiModIO
|
||||
|
||||
|
||||
class TestConfigRscBugs(TestRevPiModIO):
|
||||
|
||||
data_dir = dirname(__file__)
|
||||
|
||||
def test_overlapping(self):
|
||||
with self.assertWarnsRegex(Warning, r"RelayOutputPadding_[1-4]"):
|
||||
self.modio(configrsc="config_overlapping_bits.rsc")
|
||||
|
||||
with self.assertWarnsRegex(Warning, r"RelayCycleWarningThreshold_4"):
|
||||
self.modio(configrsc="config_overlapping_bytes.rsc")
|
||||
|
||||
def test_floating_offsets(self):
|
||||
with self.assertWarnsRegex(Warning, r"Offset value 31.5"):
|
||||
self.modio(configrsc="config_floating_offset.rsc")
|
||||
Reference in new issue
Block a user