File indexing completed on 2024-04-28 16:01:13

0001 /*
0002  * SPDX-FileCopyrightText: 2020-2021 Han Young <hanyoung@protonmail.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 #pragma once
0007 #include <QSignalSpy>
0008 #include <QTest>
0009 #include <kweathercore/sunrisesource.h>
0010 using namespace KWeatherCore;
0011 class SunriseSourceTest : public QObject
0012 {
0013     Q_OBJECT
0014 private Q_SLOTS:
0015     void initTestCase();
0016     void testFetch();
0017 
0018 private:
0019     SunriseSource *d;
0020     QSignalSpy *finished_spy;
0021     QSignalSpy *networkError_spy;
0022 };