-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed directory structure of unittests
- Loading branch information
Robert Schindler
committed
Aug 8, 2019
1 parent
4f2b65e
commit 0ed3e53
Showing
6 changed files
with
25 additions
and
18 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
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 |
---|---|---|
@@ -1 +1,17 @@ | ||
from .tests.test_flexquery import AModel | ||
from django.db import models | ||
|
||
from django_flexquery import * | ||
|
||
|
||
q_func = lambda self: Q(a=42) | ||
|
||
fq = FlexQuery.from_q(q_func) | ||
|
||
|
||
class QS(QuerySet): | ||
fq = fq | ||
|
||
|
||
class AModel(models.Model): | ||
objects = QS.as_manager() | ||
a = models.IntegerField() |
File renamed without changes.
16 changes: 1 addition & 15 deletions
16
...o_flexquery_tests/tests/test_flexquery.py → tests/testsuite/test_flexquery.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
File renamed without changes.
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