From: Bastian Dehn Date: Tue, 4 Aug 2026 13:23:43 +0000 (+0200) Subject: add load example config file X-Git-Tag: v1.0.6^2~1^2~73 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=c5a8634c145fdc6050f76a61b15941142c2da10a;p=simple-backup.git add load example config file --- diff --git a/tests/backup_tests.bats b/tests/backup_tests.bats index 511ad44..32b5635 100755 --- a/tests/backup_tests.bats +++ b/tests/backup_tests.bats @@ -4,6 +4,7 @@ setup() { bats_load_library 'bats-support' bats_load_library 'bats-assert' export TESTMODE="ON" + export CONFIG_FILE="src/config-example.yaml" source src/backup exists_config_file() { return 0 @@ -12,21 +13,16 @@ setup() { teardown() { unset TESTMODE + unset CONFIG_FILE } @test "backup run success" { - yq() { - return 0 - } run main assert_success } @test "show start message" { - yq() { - return 0 - } run main assert_success @@ -101,5 +97,5 @@ teardown() { run main assert_line --index 0 "⭐ START: backup" - assert_line --index 1 "❌ ERROR: failed to load config.yaml" + assert_line --index 1 "❌ ERROR: failed to load src/config-example.yaml" } \ No newline at end of file