Allow Source.content to be "", and only disallow None
fixes: #48
How I did it
Change content checks to check for None. If we happen to read in a source file that's empty, it's still a valid file but won't have content. Previously the conditional would cause it to fail and, since the source did not also have urls, would result in a ValueError
How to verify it
A test project with at least one empty source should be testable, and not throw the ValueError about missing content
Checklist
[x] Passes all linting checks (pre-commit and CI jobs)
[x] New test cases have been added and are passing
[x] Documentation has been updated
[x] PR title follows Conventional Commit standard (will be automatically included in the changelog)
What I did
Allow
Source.content
to be""
, and only disallowNone
fixes: #48
How I did it
Change content checks to check for
None
. If we happen to read in a source file that's empty, it's still a valid file but won't have content. Previously the conditional would cause it to fail and, since the source did not also haveurls
, would result in aValueError
How to verify it
A test project with at least one empty source should be testable, and not throw the
ValueError
about missing contentChecklist