Difference between revisions of "User:Alvonruff/ISFDB Tests"
Jump to navigation
Jump to search
Line 77: | Line 77: | ||
|- | |- | ||
| SQLReviewAuthors(title_id) | | SQLReviewAuthors(title_id) | ||
− | | | + | | DONE |
|- | |- | ||
| SQLReviewBriefAuthorRecords(title_id) | | SQLReviewBriefAuthorRecords(title_id) |
Revision as of 19:42, 18 May 2023
These are formal tests using the unittest module. The tests are mostly concerned with:
- Testing return types (int, string, float, etc).
- Testing input arguments.
- Testing for select statements that return nothing.
Although non-destructive, these tests should probably not be run against the production server. The goal is to be able to run the tests on both Python2 and Python3, and generate exactly the same results.
SQLparsing Tests
Author-Related Methods
These are mostly methods that perform a select on the authors table.
SQL Method | Status |
---|---|
SQLAuthorsBorn(date) | DONE |
SQLAuthorsDied(date) | DONE |
SQLFindAuthors(target, mode = 'contains') | DONE |
SQLFindReviewParent(title, author, referral_lang) | Later (only used by mod scripts) |
SQLgetActualFromPseudo(au_id) | DONE |
SQLGetAllAuthorsForPublisher(publisher_id, sort_by) | DONE |
SQLgetAuthorData(author) | DONE |
SQLGetAuthorDirectory() | DONE |
SQLgetBriefActualFromPseudo(au_id) | DONE |
SQLgetBriefPseudoFromActual(au_id) | DONE |
SQLGetCoverAuthorsForPubs(pub_list) | DONE |
SQLInterviewAuthors(title_id) | DONE |
SQLInterviewBriefAuthorRecords(title_id) | DONE |
SQLIntervieweeAuthors(title_id, author_id = 0) | DONE |
SQLloadAuthorData(author_id) | DONE |
SQLLoadTransAuthorNamesList(author_ids) | DONE |
SQLMultipleAuthors(name) | DONE |
SQLPubAuthors(pub_id) | DONE |
SQLPubBriefAuthorRecords(pub_id) | DONE |
SQLPubListBriefAuthorRecords(pub_list) | DONE |
SQLReviewAuthors(title_id) | DONE |
SQLReviewBriefAuthorRecords(title_id) | |
SQLReviewedAuthors(title_id) | |
SQLTitleAuthors(title_id) | |
SQLTitleBriefAuthorRecords(title_id) | DONE |
SQLTitleListBriefAuthorRecords(title_list, author_id = 0) | |
SQLtransLegalNames(author_ids) |