Skip to content

Commit

Permalink
Rename demo/ to tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Nov 5, 2016
1 parent d4c704b commit c74b03b
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ matrix:
script:
- pip install $DJANGO coverage
- pip install .
- coverage run --source=. --omit=setup.py ./demo/manage.py test --verbosity=2
- coverage run --source=. --omit=setup.py ./tests/manage.py test --verbosity=2
after_success:
- pip install python-coveralls
- coveralls
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,19 @@ All subclass from ``django_settings_export.SettingsExportError``.



Demo
----
Demo & Tests
------------

See the source code of the bundled
`demo app <https://github.com/jkbrzt/django-settings-export/tree/master/demo>`_.
`demo app <https://github.com/jkbrzt/django-settings-export/tree/master/tests>`_.


Development
===========

.. code-block:: bash
$ cd demo
$ cd tests
# Run demo
$ python manage.py runserver
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion demo/manage.py → tests/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
os.path.join(os.path.dirname(__file__), '..'))
sys.path.insert(0, PROJECT_ROOT_DIR)

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
File renamed without changes.
4 changes: 2 additions & 2 deletions demo/settings.py → tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
SECRET_KEY = 'spam'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ROOT_URLCONF = 'demo.urls'
INSTALLED_APPS = ['demo']
ROOT_URLCONF = 'tests.urls'
INSTALLED_APPS = ['tests']
DATABASES = {'default': {'NAME': 'db.sqlite',
'ENGINE': 'django.db.backends.sqlite3'}}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ envlist = py27, py35, pypy
[testenv]

commands =
python ./demo/manage.py test --verbosity=3
python ./tests/manage.py test --verbosity=3

0 comments on commit c74b03b

Please sign in to comment.