Skip to content

Refactor models to make use of regular expressions

David Runge requested to merge refactor_models into master

Refactor the code so that models are largely validated using reusable regular expressions (further use is blocked by #10 which requires a rebuild todo for existing packages making use of all caps names in dependency/relationship tracking) or constrained types.

Use default fixtures for values instead of parametrized fixtures (which lead to a high number of tests) when testing models. Clean up inefficient use of models in parametrized tests (replaced by global fixtures).

Refactor code to make use of the same functions (open_tarfile() and extract_file_from_tarfile()) when opening package files or sync database files or extracting files from them. Implement the automatic detection of tar file type by using python-magic.

Closes #54 (closed)

Closes #37 (closed)

Edited by David Runge

Merge request reports

Loading