created apps.lists, w. deliberately failing unit test
This commit is contained in:
0
apps/__init__.py
Normal file
0
apps/__init__.py
Normal file
0
apps/lists/__init__.py
Normal file
0
apps/lists/__init__.py
Normal file
3
apps/lists/admin.py
Normal file
3
apps/lists/admin.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
||||||
5
apps/lists/apps.py
Normal file
5
apps/lists/apps.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class ListsConfig(AppConfig):
|
||||||
|
name = 'apps.lists'
|
||||||
0
apps/lists/migrations/__init__.py
Normal file
0
apps/lists/migrations/__init__.py
Normal file
3
apps/lists/models.py
Normal file
3
apps/lists/models.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
||||||
5
apps/lists/tests.py
Normal file
5
apps/lists/tests.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
class SmokeTest(TestCase):
|
||||||
|
def test_bad_maths(self):
|
||||||
|
self.assertEqual(1 + 1, 3)
|
||||||
3
apps/lists/views.py
Normal file
3
apps/lists/views.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
||||||
@@ -31,12 +31,16 @@ ALLOWED_HOSTS = []
|
|||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
# Django apps
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
# Custom apps
|
||||||
|
'apps.lists',
|
||||||
|
# Depend apps
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
|||||||
Reference in New Issue
Block a user