Skip to content

Commit

Permalink
Investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Dec 27, 2024
1 parent e506abc commit 79dd9b1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions autotests/testsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,13 @@ class TestSettings : public QObject {
Q_OBJECT

private slots:
void initTestCase();
void accountSettings_data() const;
void accountSettings();

private:
static inline const auto AccountsGroupName = u"Accounts"_s;
QSettings qSettings{};
};

void TestSettings::initTestCase()
{
qSettings.remove(AccountsGroupName);
}

void TestSettings::accountSettings_data() const
{
QTest::addColumn<QString>("mxId");
Expand All @@ -36,6 +29,12 @@ void TestSettings::accountSettings_data() const

void TestSettings::accountSettings()
{
QSettings qSettings{};
qDebug() << "Settings stored in" << qSettings.fileName();
qDebug() << "Settings are writeable:" << qSettings.isWritable();
qDebug() << "Organisation / application:" << qSettings.organizationName() << '/'
<< qSettings.applicationName();
qSettings.remove(AccountsGroupName);
static const auto homeserverUrl = QUrl(u"https://example.org"_s);
static const auto deviceName = u"SomeDevice"_s;
QFETCH(QString, mxId);
Expand Down

0 comments on commit 79dd9b1

Please sign in to comment.