scriptotek / mc2skos

Command line script for converting Marc21 Classification and Authority records to SKOS/RDF
The Unlicense
21 stars 4 forks source link

Use examples as test suite #8

Closed nichtich closed 8 years ago

nichtich commented 8 years ago

test_process_examples.py reads all XML example files, transforms each to RDF and compares whether the resulting graph contains expected triples given in a corresponding Turtle file.

The current version does not include number spans. Python code may benefit from some cleanup, it's my first attempt in this language.

nichtich commented 8 years ago

At travis this runs smoothly except Python 2.6 where one of the example MARCXML files cannot be processed: https://travis-ci.org/gbv/mc2skos/jobs/129834863 I don't understand why this is limited to Python 2.6

danmichaelo commented 8 years ago

The Python code seems fine to me (meaning it's no worse than the main code, which could need some cleanup as well :))

I actually thought string.format() wasn't supported at all in Python 2.6, but it seems like it is, just not that mature..