Wikimedia

Tracker: Test form for adding acks as a requestor works correctly

Problem

Requestors can add some acks (like "submitted") from the user interface. The ticket/<int:pk>/edit/<str:ack_type>/add/ path is responsible for that. However, the test case testing this doesn't cover the code fully.  

Proposed solution

Add tests to TicketAckTests that will test that:

  • anonymous users and non-owners get 403 Forbidden when trying to add an ack
  • posting the form with comment field works
  • acks can't be added/removed once ticket is archived   Student is expected to send a patch for wikimedia-cz/tracker repository, hosted at Wikimedia Gerrit. When claiming task on GCI website, student should claim a respective Phabricator task as well.   # Materials  
  • Tracker in production
  • Test Tracker version - you can play with Tracker freely here
  • Codebase

Task tags

  • python
  • tests
  • django

Students who completed this task

Bjornskjald

Task type

  • code Code
  • done_all Quality Assurance
close

2019