Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions neuropy/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[run]
omit =
*/migrations/*,
*/tests.py
manage.py
neuropy/wsgi.py
neuropy/urls.py
neuropy/views.py
*/envNeuro/*
*/apps.py
*/admin.py
*/__init__.py

source =
neuropy
medication
todo
userprofile

[report]
show_missing = True
11 changes: 11 additions & 0 deletions neuropy/todo/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,14 @@ def test_add_todo_without_csrf_fails(self):
})
with self.assertRaises(AttributeError):
self.todos[0].todo

def test_schedule_view_returns(self):
"""Test that schedule view returns the right page."""
self.client.force_login(self.users[0])
session = self.client.session
session['some_list'] = [{},{},{}]
session.save()
html = self.client.get(reverse_lazy('create_sched')).content
parsed_html = BeautifulSoup(html, "html5lib")
import pdb; pdb.set_trace()
self.assertTrue(len(parsed_html.find_all('div')) == 10)