splunk / contentctl

Splunk Content Control Tool
Apache License 2.0
88 stars 23 forks source link

Handling the case where there are no tests #198

Closed yaleman closed 2 months ago

yaleman commented 3 months ago

If there's no tests, data.info.get("tests") returns None, which it then can't add integration tests to, so changing it slightly.

Also, assuming that at some point someone's checked that info.data["name"] is valid, since info.data.get("name") possibly returns None, which made the type-checker sad.