Skip to content

Commit

Permalink
Changed directory structure of unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schindler committed Aug 8, 2019
1 parent 4f2b65e commit 0ed3e53
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 18 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## 2.1.0 - Unreleased
### Changed
* Changed directory structure of unittests


## 2.0.0 - 2019-08-06
## Added
* Added `FlexQuery.call_bound()` method as a hook to preprocess custom arguments.
Expand Down
18 changes: 17 additions & 1 deletion tests/django_flexquery_tests/models.py
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.
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.test import TestCase

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()
from django_flexquery_tests.models import *


class FlexQueryTestCase(TestCase):
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ envlist =

[testenv]
commands =
coverage: coverage run tests/manage.py test -v 2 tests
coverage: coverage run tests/manage.py test -v 2 tests/testsuite
coverage: coverage report -m
coverage-report: coveralls
docs: sphinx-build -EqW docs docs/_build
lint: black --check -t py34 django_flexquery tests setup.py
lint: pylint --rcfile=tox.ini django_flexquery
tests: python tests/manage.py test -v 2 tests
tests: python tests/manage.py test -v 2 tests/testsuite
deps =
django20: django ~= 2.0.0
django21: django ~= 2.1.0
Expand Down

0 comments on commit 0ed3e53

Please sign in to comment.