Commit 20be8ccf authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

ensure we use dummy configs everywhere in tests

parent 6349e7e1
Pipeline #254007 passed with stage
in 9 minutes
......@@ -22,6 +22,9 @@ LocationHistoryTest::LocationHistoryTest(QObject *parent)
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
// ensure we use some dummy config
KConfig::setMainConfigName(m_tempdir->path() + QStringLiteral("/testconfigfilerc"));
// create KWrite variant to avoid plugin loading!
static QCommandLineParser parser;
app = new KateApp(parser, KateApp::ApplicationKWrite, m_tempdir->path());
......
......@@ -21,6 +21,9 @@ KateSessionManagerTest::KateSessionManagerTest()
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
// ensure we use some dummy config
KConfig::setMainConfigName(m_tempdir->path() + QStringLiteral("/testconfigfilerc"));
// create KWrite variant to avoid plugin loading!
static QCommandLineParser parser;
m_app = new KateApp(parser, KateApp::ApplicationKWrite, m_tempdir->path());
......
......@@ -22,6 +22,9 @@ KateSessionsActionTest::KateSessionsActionTest()
m_tempdir = new QTemporaryDir;
QVERIFY(m_tempdir->isValid());
// ensure we use some dummy config
KConfig::setMainConfigName(m_tempdir->path() + QStringLiteral("/testconfigfilerc"));
// create KWrite variant to avoid plugin loading!
static QCommandLineParser parser;
m_app = new KateApp(parser, KateApp::ApplicationKWrite, m_tempdir->path());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment