diff options
| author | David Bremner <david@tethera.net> | 2022-02-08 21:01:16 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-02-16 21:55:45 -0400 |
| commit | e221a4531fa8d317560d568634da695952c65365 (patch) | |
| tree | 7e9fc4db320901c406416959407bc33a1f3c8f6d /test/T055-path-config.sh | |
| parent | 6286b76a69f11a72927c96a928d4493cab2237ce (diff) | |
test: known broken test for list(db.config) in python-cffi bindings
As of notmuch 0.34.2 [1], the python-cffi bindings make available the
configuration from both a config file and the database when accessing
Database.config like a dictionary. It is therefore confusing that the
iterator operations only work on the configuration information stored
in the database.
[1]: d7f95724132bf658fd151630185899737e2ed829
Diffstat (limited to 'test/T055-path-config.sh')
| -rwxr-xr-x | test/T055-path-config.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index 1df240dd..71823039 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -293,6 +293,27 @@ user.primary_email=test_suite@notmuchmail.org EOF test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Config list from python ($config)" + test_subtest_known_broken + test_python <<EOF > OUTPUT +from notmuch2 import Database +db=Database(config=Database.CONFIG.SEARCH) +for key in list(db.config): + print(key) +EOF + cat <<EOF > EXPECTED +database.autocommit +database.backup_dir +database.hook_dir +database.mail_root +database.path +maildir.synchronize_flags +new.tags +user.name +user.other_email +user.primary_email +EOF + test_expect_equal_file EXPECTED OUTPUT case $config in XDG*) test_begin_subtest "Set shadowed config value in database ($config)" |
