fix tests
This commit is contained in:
parent
293a3c7833
commit
4c8ee8657e
@ -241,14 +241,14 @@ void TestDevices::verifyInterfaces()
|
||||
QVERIFY(!mockDevice.isEmpty());
|
||||
|
||||
QVariantList interfaces = mockDevice.value("interfaces").toList();
|
||||
// Must contain gateway, power, light and battery, but must not contain mediacontroller as the device manager should filter
|
||||
// Must contain system, power, light and battery, but must not contain gateway as the device manager should filter
|
||||
// that away because it doesn't implement all the required states.
|
||||
QCOMPARE(interfaces.count(), 4);
|
||||
QVERIFY(interfaces.contains("gateway"));
|
||||
QVERIFY(interfaces.contains("system"));
|
||||
QVERIFY(interfaces.contains("battery"));
|
||||
QVERIFY(interfaces.contains("power"));
|
||||
QVERIFY(interfaces.contains("light"));
|
||||
QVERIFY(!interfaces.contains("mediacontroller"));
|
||||
QVERIFY(!interfaces.contains("gateway"));
|
||||
}
|
||||
|
||||
void TestDevices::addConfiguredDevice_data()
|
||||
|
||||
Reference in New Issue
Block a user