Filip Valder
6b189c4b4a
Koji tag validation: Catch situation when tag arg has no value + refactoring + add comments.
2017-03-02 15:01:52 +01:00
Matt Prahl
5af8bc99f0
Change format_mmd test to be more consistent.
2017-03-01 15:00:54 -05:00
Ralph Bean
ca61d6bb29
Allow passing in multiple tag names to the validation decorator.
...
We have problems when we try to wrap one decorator around another.
There are ways to do that with the
[decorator](https://pypi.python.org/pypi/decorator ) module nicely,
however.. they are ugly.
Take a look at this:
https://github.com/micheles/decorator/blob/master/src/decorator.py#L217-L218
And this:
https://github.com/micheles/decorator/blob/master/src/decorator.py#L185-L188
The approach in this PR is.. simpler.
2017-02-28 17:15:55 -05:00
Filip Valder
6dd223fd12
support for dicts + tests
2017-02-28 20:54:03 +01:00
Filip Valder
be3b05e673
Additional tests for validate_koji_tag:
...
- Verify that ProgrammingError exception does what it is intended to do.
- Two (str/list) negative tests for validate_koji_tag decorator itself.
- Two (str/list) positive tests for validate_koji_tag decorator itself.
- Support validation in a test for Koji builder.
2017-02-28 09:08:32 +01:00
Matt Prahl
8ca616ec57
Add new tests for reusing components
2017-02-21 14:22:31 -05:00