Django: reusable app testing
NickName:daveoncode Ask DateTime:2014-10-23T17:30:02

Django: reusable app testing

By following official Django doc, I've extracted an app from my project and made it reusable and installable using pip (currently I still have to learn how to release it on pypi but that's another story)... so far so good... but now I have no idea how to run the tests I wrote for my app, since after installing it in my project using pip Django stopped to execute those tests (by default in Django 1.7 only project-apps tests are picked up)... so my question is: how can I run tests for my apps now that it has been extracted from the main project sources?

ps: of course I don't want to force the potential users of my app to run the tests I wrote, but I have to run them while working on the app on my machine

Copyright Notice:Content Author:「daveoncode」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/26525108/django-reusable-app-testing

More about “Django: reusable app testing” related questions

Django: reusable app testing

By following official Django doc, I've extracted an app from my project and made it reusable and installable using pip (currently I still have to learn how to release it on pypi but that's another ...

Show Detail

Django reusable app with package name format cannot be found when testing outside project

I'm trying to test a Django reusable app that was organized as Python packages. Here is the directory tree: reusableapp ├── __init__.py └── submodule ├── __init__

Show Detail

Django reusable app testing - coveragerc

I'm developing a Django reusable app. My development setup looks like this: ~/development/django-foo/ foo/ apps.py fixtures/ ... forms/ ... ...

Show Detail

Creating migrations for a reusable Django app

I am writing a reusable Django app and having problems creating migrations. I have looked at this question, and I'm still confused. I have the following sort of directory structure: django-

Show Detail

Base Template in reusable Django App

I want create a reusable app from a custom project. The part I want to move to a reusable app serves whole pages and uses this at the top: {% extends "myproject/base.html" %} Now I am unsure wha...

Show Detail

Functional tests in Django reusable apps

I'm writing a Django reusable app. It's not a usual app which can be used on its own. It requires other apps to be usable just like django.contrib.admin or django-dajaxice do. My current project t...

Show Detail

Testing reusable Django apps with Django testrunner

I want to test a small reusable app which comes with its own settings module. Global (project) settings are accessed inside app's settings to support variables' overriding, e.g. # in <my_app>/

Show Detail

How to ship migrations in a Django reusable app?

I can create migrations for my reusable application from a minimal test project, but that would install the migrations in - /usr/local/lib/python3.5/dist-packages/django_app-0.1-py3.5.egg/django_...

Show Detail

How to make migrations for a reusable Django app?

I am making a reusable Django app without a project. This is the directory structure: / /myapp/ /myapp/models.py /myapp/migrations/ /myapp/migrations/__init__.py When I run django-admin makemigra...

Show Detail

How to make migrations for a reusable Django app?

I am making a reusable Django app without a project. This is the directory structure: / /myapp/ /myapp/models.py /myapp/migrations/ /myapp/migrations/__init__.py When I run django-admin makemigra...

Show Detail