-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from csparpa/dev
Release 0.2
- Loading branch information
Showing
7 changed files
with
175 additions
and
42 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
https://github.com/csparpa/django-pyowm | ||
|
||
Checklist: | ||
|
||
- write new models / patch existing ones | ||
- write / patch tests | ||
- | ||
- update setup.py | ||
- merge develop branch into master branch (no feature/hotfix branches left open) | ||
- handle github stuff (issues, PRs, etc..) | ||
- tag release on github | ||
- generate and upload release on pypi |
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,43 @@ | ||
# Testing | ||
|
||
## How to run tests | ||
|
||
As `django_pyowm` is a Django app, it must be tested against a Django project, so we will create one. | ||
|
||
First of all you need to have the app installed in your `PYTHONPATH`. | ||
Then create a test Django project and a test Django app with: | ||
|
||
```shell | ||
$ django-admin startproject testproject | ||
$ cd testproject | ||
$ django-admin startapp testapp | ||
``` | ||
|
||
Then edit your `INSTALLED_APPS` in file `testproject/testproject/settings.py` | ||
|
||
```python | ||
INSTALLED_APPS = [ | ||
... | ||
'testapp', | ||
'django_pyowm' | ||
] | ||
``` | ||
|
||
Now copy the content of file `django_pyowm/django_pyowm/tests.py` into file `testproject/testapp/tests.py` | ||
|
||
Apply migrations with: | ||
|
||
``` | ||
$ cd testproject | ||
$ python manage.py makemigrations django_pyowm | ||
$ python manage.py migrate | ||
``` | ||
|
||
Finally launch the tests with: | ||
|
||
``` | ||
$ python manage.py test | ||
``` | ||
|
||
## Good reads | ||
http://joebergantine.com/blog/2015/dec/03/test-reusable-django-application-support-multiple-/ |
This file was deleted.
Oops, something went wrong.
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