-
Notifications
You must be signed in to change notification settings - Fork 6
db.py: Add tests and improve consistency #62
Conversation
b3f8436
to
34953f2
Compare
This gets us to about 50% coverage on |
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
=========================================
Coverage ? 36.07%
=========================================
Files ? 6
Lines ? 1034
Branches ? 0
=========================================
Hits ? 373
Misses ? 661
Partials ? 0
Continue to review full report at Codecov.
|
a2e9e0f
to
7498efd
Compare
8cdb7ed
to
f0251e6
Compare
100% test coverage for |
71fdd07
to
ce3f336
Compare
Create another method, `create_repoid()` that inserts a new repoid into the database. Fix comments to meet pydocstyle requirements. Signed-off-by: Major Hayden <major@redhat.com>
Separate the sourceid creation into the `create_sourceid()` method and ensure comments meet pydocstyle requirements. Signed-off-by: Major Hayden <major@redhat.com>
Ensure all methods are using consistent arguments that are easier to read and understand. Fix comments to meet pydocstyle requirements and fully explain arguments/returns. Signed-off-by: Major Hayden <major@redhat.com>
Fixes cki-project#65. Signed-off-by: Major Hayden <major@redhat.com>
Signed-off-by: Major Hayden <major@redhat.com>
Signed-off-by: Major Hayden <major@redhat.com>
Pull Request Test Coverage Report for Build 203
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the db.py change is cosmetic. The tests are lengthy and just validate the thin db calls, so most tests are obvious. Reading the db.py function makes one scratch their heads if it is doing the right thing, but we can't blame the tests for that.
Work in progress.