mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-25 15:02:28 +00:00
Some cleanup
This commit is contained in:
@ -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);
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user