class UPDATE_DJ_PLAYLISTS_TASK_TEST_SET

(source code)

description

Test set for class UPDATE_DJ_PLAYLISTS_TASK

note
	description: "Test set for class ${UPDATE_DJ_PLAYLISTS_TASK}"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2024-01-20 19:18:24 GMT (Saturday 20th January 2024)"
	revision: "10"

class
	UPDATE_DJ_PLAYLISTS_TASK_TEST_SET

inherit
	RBOX_MANAGEMENT_TASK_TEST_SET [UPDATE_DJ_PLAYLISTS_TASK]
		redefine
			do_task
		end

feature {NONE} -- Implementation

	do_task
		do
			task.apply
			across database.dj_playlists as playlist loop
				log.put_labeled_string ("Title", playlist.item.title)
				log.put_new_line
				across playlist.item as song loop
					log.put_path_field ("MP3 %S", song.item.mp3_relative_path)
					log.put_new_line
				end
				log.put_new_line
			end
			across OS.file_list (Playlists_dir, "*.pyx") as path loop
				log.put_labeled_string (path.item.to_string, raw_file_digest (path.item).to_base_64_string)
				log.put_new_line
			end
			print_rhythmdb_xml
		end

feature {NONE} -- Constants

	Checksum: NATURAL = 2524514439

	Task_config: STRING = "[
		update_dj_playlists:
			music_dir = "workarea/rhythmdb/Music"
			dj_events:
				dj_name = "Finnian Reilly"; default_title = "DATS Milonga Playlist"
	]"

end