mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-07 10:55:52 +00:00
Some test improvements
This commit is contained in:
@ -26,7 +26,9 @@
|
||||
|
||||
void TestAbstractExtItem::initTestCase()
|
||||
{
|
||||
generateFilename();
|
||||
auto names = AWTestLibrary::randomFilenames();
|
||||
fileName = names.first;
|
||||
writeFileName = names.second;
|
||||
|
||||
extItem = new ExtUpgrade(nullptr, fileName);
|
||||
extItem->setActive(false);
|
||||
@ -108,18 +110,4 @@ void TestAbstractExtItem::test_copy()
|
||||
}
|
||||
|
||||
|
||||
void TestAbstractExtItem::generateFilename()
|
||||
{
|
||||
fileName = QString("%1/").arg(
|
||||
QStandardPaths::writableLocation(QStandardPaths::TempLocation));
|
||||
writeFileName = QString("%1/awesomewidgets/tmp/")
|
||||
.arg(QStandardPaths::writableLocation(
|
||||
QStandardPaths::GenericDataLocation));
|
||||
|
||||
QString name = AWTestLibrary::randomString(20);
|
||||
fileName += name;
|
||||
writeFileName += name;
|
||||
}
|
||||
|
||||
|
||||
QTEST_MAIN(TestAbstractExtItem);
|
||||
|
Reference in New Issue
Block a user