cjcodeproj / medialibrary

Python code to read XML media files
MIT License
2 stars 0 forks source link

Validation tests should have reference codes #132

Open cjcodeproj opened 1 year ago

cjcodeproj commented 1 year ago

The validation code currently has the following tests:

media.title                         
media.title.main                   
media.title.main.value            
media.title.edition              
media.title.edition.value       
media.title.main.whitespace    
media.title.edition.whitespace 
generic.catalog                      
generic.catalog.copyright           
generic.catalog.copyright.year       
generic.catalog.copyright.holders     
generic.story.plot                  
generic.story.plot.whitesapce      
generic.story.plot.length         
genericv.technical.runtime       
genericv.technical.runtime.value 
movie.technical.runtime.value   

Every validation test should have some kind of reference code as a shorthand abbreviation, similar to the codes used in programs like pycodestyle and pylint. The coding scheme should be consistent, with a one to one pairing, suitable for the codes to be a shorthand reference to the name of the code. Also, the coding should be grouped by category so seeing the code should provide a rough indicator of what the test covers.