Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
littlepea committed Apr 29, 2013
1 parent 59579ea commit 9d152ca
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 53 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*.orig
*.DS_Store
.coverage
*coverage*
build*
.tox
*.egg-info/*
docs/_build/*
Expand Down
17 changes: 0 additions & 17 deletions docs/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""

from django.test import TestCase


class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)

17 changes: 17 additions & 0 deletions docs/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""


from django.test import TestCase


class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)
35 changes: 0 additions & 35 deletions runtests.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def read_file(filename):
return ''

try:
REQUIREMENTS = read_file('requirements.txt').read()
REQUIREMENTS = read_file('requirements.txt').splitlines()
except:
REQUIREMENTS = [
'Django',
Expand Down

0 comments on commit 9d152ca

Please sign in to comment.