base package

Subpackages

Submodules

base.admin module

base.apps module

class base.apps.BaseConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

name = 'base'

base.models module

base.test_views module

class base.test_views.TestBaseViews(methodName='runTest')[source]

Bases: django.contrib.staticfiles.testing.StaticLiveServerTestCase

Integration test suite for testing the views in the app: base.

Test the url for home and the basefiles like robots.txt and humans.txt

browser

Browser – Driver to navigate through websites and to run integration tests.

setUp()[source]

Initialize the browser, before running the tests.

tearDown()[source]

At the end of tests, close the browser

test_home()[source]

Test for url ‘base:home’.

Visit the url of name ‘home’ and check it loads the content

test_humans()[source]

Test for url ‘base:base_files(humans.txt)’.

Visit the url of humans.txt and check it loads the file

test_robots()[source]

Test for url ‘base:base_files(robots.txt)’.

Visit the url of robots.txt and check it loads the file

base.urls module

base.views module

base.views.base_files(request, filename)[source]
base.views.home(request)[source]

Module contents