django-nose Questions
6
Solved
For some time now, my unit testing has been taking a longer than expected time. I have tried to debug it a couple of times without much success, as the delays are before my tests even begin to run....
Schoolbook asked 7/4, 2016 at 21:58
2
I am trying to mock a chained call on the Djangos model.Manager() class. For now I want to mock the values() and filter() method.
To test that I created a little test project:
Create a virtual e...
Unicorn asked 14/10, 2012 at 15:56
5
Solved
Currently have a project configured to run coverage via Django's manage command like so:
./manage.py test --with-coverage --cover-package=notify --cover-branches --cover-inclusive --cover-erase
...
Astrea asked 10/7, 2014 at 3:50
2
Solved
My python apps testing is performed on the remote server with command nosetests. I cannot modify the way tests are started nor can I add options to it. I have Django app with tests, but tests are n...
Manx asked 23/3, 2018 at 11:8
2
I have django-nose 1.0 installed as the test runner for a Django 1.3.1 project. I'm following the instructions on the pypi page regarding test-only models.
Here is my settings.py testrunner config...
Claire asked 30/7, 2012 at 22:55
5
I have my tests for a Django application in a tests directory:
my_project/apps/my_app/
├── __init__.py
├── tests
│ ├── __init__.py
│ ├── field_tests.py
│ └── storage_tests.py
├── urls.py
├── utils...
Selfinduced asked 19/5, 2011 at 21:36
1
Solved
I am getting a bit odd behavior using the override_settings decorator. It basically works when I run the test alone, but won't work if I run the whole testing suite.
In this test I am changing the...
Waxy asked 6/1, 2017 at 4:26
0
I am running simple nose tests on a Django website (code available here). Depending on the order that the CLI commands are issued, I get vastly different results!
Looking at many posts, it seems ...
Rockie asked 11/7, 2016 at 5:32
3
Solved
I have a django project that used django-nose. I'd like to add django-celery to the project. I use unit tests. Both django-nose and django-celery need a TEST_RUNNER setting in my settings.py file. ...
Lipetsk asked 23/3, 2013 at 2:38
2
Solved
With Django's normal test runner, you can drill down to run tests in a specific app, a specific subclass of TestCase, or a specific test within a specific subclass of TestCase.
E.g.:
./manage.py ...
Anyways asked 16/9, 2013 at 17:48
3
Solved
I am using django-nose to run my unit tests in django (1.4).
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
Creating the database takes a long time.
So I found out putting this in settings.py:...
Dominican asked 13/6, 2013 at 9:32
2
Solved
Very similar to lafagundes question about south migration debug logging, except I'm not using south - I'm using plain Django 1.7 migrations. I'm also using django-nose test runner.
When I run mana...
Popp asked 22/8, 2015 at 17:14
4
I've successfully installed and configured django-nose with coverage
Problem is that if I just run coverage for ./manage.py shell and exit out of that shell - it shows me 37% code coverage. I full...
Vernonvernor asked 29/3, 2014 at 3:0
0
I'm running into a strange problem that seems to come about from how python unit tests manage their imports and how this relates to the mock package. This is for a django project, using django-nose...
Biforate asked 15/7, 2014 at 19:55
2
Solved
I keep hearing people say about how tests should be simple, maintainable, straightforward, but what happens with code re-usability in unit testing?
Let's take for example:
def test_some_1():
......
Latten asked 4/6, 2014 at 7:35
4
I'm having trouble getting django-nose running.
Per the installation instructions, I installed by:
Running pip install django-nose
Adding 'django_nose' to INSTALLED_APPS in settings.py (includin...
Neri asked 31/8, 2012 at 12:35
1
Solved
I'm setting up a directory structure for my Django app to separate functional and unit tests. I am using nose as the test runner for my Django project.
At the root of the Django project, I have a ...
Roundly asked 9/8, 2013 at 15:50
2
I am trying to use Django-nose in my current project, but I can't figure out how to get nose to run my tests. So I started a simple Django 1.4.1 project to get to know nose. But not even on this si...
Holmgren asked 12/10, 2012 at 22:20
1
© 2022 - 2024 — McMap. All rights reserved.