forked from mmmaly/chcemvediet
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #280 Fix test_detail view * #280 Add inforequest test_detail tests * #280 Refactroring tests names
- Loading branch information
1 parent
3343e2f
commit ce9f9f2
Showing
6 changed files
with
309 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
chcemvediet/apps/inforequests/tests/render_query_patterns.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from poleno.utils.misc import squeeze | ||
|
||
|
||
base = [ | ||
u'FROM "accounts_profile" WHERE "accounts_profile"."user_id" = %s LIMIT 21', | ||
squeeze(u""" | ||
SELECT COUNT\(\*\) FROM "mail_message" | ||
INNER JOIN "inforequests_inforequestemail" ON \( "mail_message"."id" = "inforequests_inforequestemail"."email_id" \) | ||
INNER JOIN "inforequests_inforequest" ON \( "inforequests_inforequestemail"."inforequest_id" = "inforequests_inforequest"."id" \) | ||
WHERE \("inforequests_inforequestemail"."type" = %s | ||
AND "inforequests_inforequest"."applicant_id" = %s | ||
AND "inforequests_inforequest"."closed" = %s\) | ||
"""), | ||
u'FROM "invitations_invitationsupply" WHERE "invitations_invitationsupply"."user_id" = %s LIMIT 21', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
192 changes: 0 additions & 192 deletions
192
chcemvediet/apps/inforequests/tests/test_views/skip_test_detail.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.