mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-09-12 10:19:55 +00:00
Replace yahoo finance to stooq (#131)
Old code is dropped to separated provider
This commit is contained in:
@ -30,10 +30,10 @@ void TestHDDTemperatureSource::initTestCase()
|
||||
devices = HDDTemperatureSource::allHdd();
|
||||
QVERIFY(devices.count() > 0);
|
||||
|
||||
hddtempSource = new HDDTemperatureSource(
|
||||
this, QStringList() << devices.join(',') << hddtempCmd);
|
||||
smartctlSource = new HDDTemperatureSource(
|
||||
this, QStringList() << devices.join(',') << smartctlCmd);
|
||||
hddtempSource
|
||||
= new HDDTemperatureSource(this, QStringList() << devices.join(',') << hddtempCmd);
|
||||
smartctlSource
|
||||
= new HDDTemperatureSource(this, QStringList() << devices.join(',') << smartctlCmd);
|
||||
}
|
||||
|
||||
|
||||
@ -57,8 +57,7 @@ void TestHDDTemperatureSource::test_sources()
|
||||
void TestHDDTemperatureSource::test_hddtemp()
|
||||
{
|
||||
std::for_each(devices.begin(), devices.end(), [this](QString device) {
|
||||
QSignalSpy spy(hddtempSource,
|
||||
SIGNAL(dataReceived(const QVariantHash &)));
|
||||
QSignalSpy spy(hddtempSource, SIGNAL(dataReceived(const QVariantHash &)));
|
||||
float firstValue = hddtempSource->data(device).toFloat();
|
||||
|
||||
QVERIFY(spy.wait(5000));
|
||||
@ -75,8 +74,7 @@ void TestHDDTemperatureSource::test_hddtemp()
|
||||
void TestHDDTemperatureSource::test_smartctl()
|
||||
{
|
||||
std::for_each(devices.begin(), devices.end(), [this](QString &device) {
|
||||
QSignalSpy spy(smartctlSource,
|
||||
SIGNAL(dataReceived(const QVariantHash &)));
|
||||
QSignalSpy spy(smartctlSource, SIGNAL(dataReceived(const QVariantHash &)));
|
||||
float firstValue = smartctlSource->data(device).toFloat();
|
||||
|
||||
QVERIFY(spy.wait(5000));
|
||||
|
Reference in New Issue
Block a user