Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
3d74a43a
Commit
3d74a43a
authored
Dec 02, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
kns: make the test more reliable
Some test cases rely on a clean .qttest, so make sure it is.
parent
0dbca799
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/KNSBackend/tests/KNSBackendTest.cpp
View file @
3d74a43a
...
...
@@ -28,6 +28,8 @@ KNSBackendTest::KNSBackendTest(QObject* parent)
,
m_r
(
nullptr
)
{
QStandardPaths
::
setTestModeEnabled
(
true
);
QDir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)).
removeRecursively
();
ResourcesModel
*
model
=
new
ResourcesModel
(
QStringLiteral
(
"kns-backend"
),
this
);
Q_ASSERT
(
!
model
->
backends
().
isEmpty
());
auto
findTestBackend
=
[](
AbstractResourcesBackend
*
backend
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment