Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorandreas-ementio <109289207+andreas-ementio@users.noreply.github.com>2022-07-14 18:19:31 +0300
committerJonathan White <support@dmapps.us>2022-09-08 13:48:18 +0300
commit612c1098eaa9cfa54fe4dbe9c6e11d3e2e18fdae (patch)
treeca2e25b3874e4421476f340b459eea763c08bb08 /tests
parented7b634dbf157915d55af5b13d6780bd41d83e36 (diff)
Fix CLI output when using clip with the -t flag
if you use the CLI with -t/--totp flag, the program prints out: "Entry's "password" attribute copied to the clipboard!" expected output is "Entry's "totp" attribute copied to the clipboard!" the same when you run with -a totp
Diffstat (limited to 'tests')
-rw-r--r--tests/TestCli.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/TestCli.cpp b/tests/TestCli.cpp
index 14012cdcd..f822dfe34 100644
--- a/tests/TestCli.cpp
+++ b/tests/TestCli.cpp
@@ -671,6 +671,7 @@ void TestCli::testClip()
setInput("a");
execCmd(clipCmd, {"clip", m_dbFile->fileName(), "/Sample Entry", "0", "--totp"});
QTRY_VERIFY(isTotp(clipboard->text()));
+ QCOMPARE(m_stdout->readLine(), QByteArray("Entry's \"totp\" attribute copied to the clipboard!\n"));
// Test Unicode
setInput("a");