openlearningtools / opencompetencies

A tool for organizing educational competencies.
MIT License
16 stars 3 forks source link

Tests focus on view functions, not behavior of final rendered pages #92

Open ehmatthes opened 8 years ago

ehmatthes commented 8 years ago

On edit_sa_summary, I had left out the sa_form from the context, and had not used sda_form correctly. So on the rendered page, you couldn't modify an sa or an sda. But test_edit_sa_summary_view() passes! This is because the view function is being tested, not the rendered page.

One improvement is to check that the form elements appear in the rendered page content_str = response.content.decode(). I wonder if I need something like selenium to interact with the rendered page?

ehmatthes commented 8 years ago

To close this issue, in this milestone: