Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from ncrmro/dev
Browse files Browse the repository at this point in the history
0.0.1
  • Loading branch information
ncrmro authored Dec 8, 2016
2 parents 1e58ce2 + 672002d commit 3f672b8
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ ENV/
# Rope project settings
.ropeproject
/db.sqlite3
/src/db.sqlite3
9 changes: 9 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
machine:
python:
version: 3.5.2
dependencies:
post:
- pip install -r ./deps/testing.txt
test:
override:
- ./src/manage.py test ./src
8 changes: 4 additions & 4 deletions deps/base.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django
graphene-django
django-filter
django-environ
Django==1.10.3
graphene-django==1.2.0
django-filter==1.0.1
django-environ==0.4.1
6 changes: 3 additions & 3 deletions deps/prod.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r base.txt
psycopg2
waitress
whitenoise
psycopg2==2.6.2
waitress==1.0.1
whitenoise==3.2.2
3 changes: 2 additions & 1 deletion deps/testing.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
prospector
prospector==0.12.4
coverage==4.2
19 changes: 18 additions & 1 deletion src/todos/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
from django.test import TestCase
from django.contrib.auth.models import User
from django.test import TestCase, RequestFactory
from .models import TodoModel


# Create your tests here.
class TodoTest(TestCase):
def setUp(self):
self.user = User.objects.create_user(
username='test_user',
first_name='test',
last_name='user',
email='[email protected]',
password='top_secret'
)

TodoModel.objects.create(user=self.user, text="roar")

def test_animals_can_speak(self):
todo = TodoModel.objects.get(text="roar")

0 comments on commit 3f672b8

Please sign in to comment.