id3c.tests.test_path_templates#

Tests for the hdf1 path-template reader helpers.

_read_path_template / _write_path_template feed the ad_read_path_template / ad_write_path_template start-metadata that lets a master file reconstruct its image-files symlink.

Functions#

test_read_path_template_primary()

read_path_template is returned when present.

test_write_path_template_primary()

write_path_template is returned when present.

test_read_falls_back_to_underscore_attr()

The _read_path_template attribute is the documented fallback.

test_write_falls_back_to_underscore_attr()

The _write_path_template attribute is the documented fallback.

test_returns_none_when_absent()

Missing templates return None (stamped as '' in metadata).

Module Contents#

id3c.tests.test_path_templates.test_read_path_template_primary()[source]#

read_path_template is returned when present.

id3c.tests.test_path_templates.test_write_path_template_primary()[source]#

write_path_template is returned when present.

id3c.tests.test_path_templates.test_read_falls_back_to_underscore_attr()[source]#

The _read_path_template attribute is the documented fallback.

id3c.tests.test_path_templates.test_write_falls_back_to_underscore_attr()[source]#

The _write_path_template attribute is the documented fallback.

id3c.tests.test_path_templates.test_returns_none_when_absent()[source]#

Missing templates return None (stamped as ‘’ in metadata).