Skip to content

Commit

Permalink
test latex:home + bug fixed due to project name changed + gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienLemaire committed Jan 17, 2011
1 parent 77b8151 commit 6bdbb3f
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*.pyc
*.swp
Binary file removed __init__.pyc
Binary file not shown.
Binary file removed latex/__init__.pyc
Binary file not shown.
Binary file removed latex/models.pyc
Binary file not shown.
23 changes: 0 additions & 23 deletions latex/tests.py

This file was deleted.

1 change: 1 addition & 0 deletions latex/tests/__init__.py
@@ -0,0 +1 @@
from view_tests import *
14 changes: 14 additions & 0 deletions latex/tests/view_tests.py
@@ -0,0 +1,14 @@
# from django
from django.test import TestCase
from django.core.urlresolvers import reverse


class LatexViewTest(TestCase):
"""Testing views"""

def test_home(self):
"Verify if we get the home page"
url = reverse("latex:home")
response = self.client.get(url)
self.assertEqual(200, response.status_code)
self.assertContains(response, reverse("latex:get_pdf"))
Binary file removed latex/urls.pyc
Binary file not shown.
Binary file removed latex/utils.pyc
Binary file not shown.
Binary file removed latex/views.pyc
Binary file not shown.
8 changes: 4 additions & 4 deletions settings.py
@@ -1,4 +1,4 @@
# Django settings for django_latex project.
# Django settings for sample_django_latex project.
import os

DEBUG = True
Expand All @@ -12,8 +12,8 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': ':memory:', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
Expand Down Expand Up @@ -78,7 +78,7 @@
'django.contrib.messages.middleware.MessageMiddleware',
)

ROOT_URLCONF = 'django_latex.urls'
ROOT_URLCONF = 'sample_django_latex.urls'

TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
Expand Down
Binary file removed settings.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions urls.py
Expand Up @@ -5,6 +5,6 @@
urlpatterns = patterns('',
(r'^$', redirect_to, {'url': '/latex/'}),
(r'^latex/', include('latex.urls',
namespace="latex",
app_name="latex")),
namespace="latex",
app_name="latex")),
)
Binary file removed urls.pyc
Binary file not shown.
Binary file removed utils.pyc
Binary file not shown.

0 comments on commit 6bdbb3f

Please sign in to comment.