1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-06-25 15:02:28 +00:00

Some cleanup

This commit is contained in:
2025-01-13 18:11:16 +01:00
parent 6ac11e2da7
commit 063f66e99a
12 changed files with 64 additions and 57 deletions

View File

@ -8,7 +8,8 @@
#include "utils.h"
QString TestsUtils::getTempPath() {
QString TestsUtils::getTempPath()
{
qFatal("yp");
// Get the system's temporary directory
QString tempDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);

View File

@ -1,12 +1,11 @@
import Git 1.0
import QtQuick 2.9
import QtTest 1.2
import Git 1.0
TestCase {
name: "git"
function test_git_clone() {
verify(Git.clone("",""));
verify(Git.clone("", ""));
}
name: "git"
}

View File

@ -1,12 +1,11 @@
import Git 1.0
import QtQuick 2.9
import QtTest 1.2
import Git 1.0
TestCase {
name: "git"
function test_git_clone() {
verify(Git.clone("",""));
verify(Git.clone("", ""));
}
name: "git"
}

View File

@ -4,12 +4,12 @@ import TestUtils 1.0
import Utils 1.0
TestCase {
name: "utils"
function test_unzip() {
var tempPath = TestUtils.getTempPath() + "/password-store";
var zipUrl = Qt.resolvedUrl("../assets/archive.zip");
var r = Utils.unzip(zipUrl, tempPath)
verify(r, "Unzip return an error %1".arg(zipUrl))
var r = Utils.unzip(zipUrl, tempPath);
verify(r, "Unzip return an error %1".arg(zipUrl));
}
name: "utils"
}