mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 14:25:50 +00:00
refactor: simplify sources processing
Also fix desktop source
This commit is contained in:
@ -15,7 +15,6 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "testnetworksource.h"
|
||||
|
||||
#include <QtTest>
|
||||
@ -27,7 +26,7 @@
|
||||
void TestNetworkSource::initTestCase()
|
||||
{
|
||||
AWTestLibrary::init();
|
||||
source = new NetworkSource(this, QStringList());
|
||||
source = new NetworkSource(this);
|
||||
}
|
||||
|
||||
|
||||
@ -39,7 +38,9 @@ void TestNetworkSource::cleanupTestCase()
|
||||
|
||||
void TestNetworkSource::test_sources()
|
||||
{
|
||||
QCOMPARE(source->sources(), QStringList({"device", "ssid"}));
|
||||
auto sources = source->sources();
|
||||
QVERIFY(sources.contains("device"));
|
||||
QVERIFY(sources.contains("ssid"));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user