Ticket #10267 (closed: fixed)

Opened 6 years ago

Last modified 6 years ago

Tests for QueueProcessor

Reported by: MarcusNoble Owned by: MarcusNoble
Priority: major Milestone: Release 3.3
Component: Tools Keywords: AUTOREDUCTION
Cc: doucetm@…, tom.griffin@…, nick.draper@…, anders.markvardsen@… Blocked By:
Blocking: #10186 Tester: Anders Markvardsen

Description (last modified by MarcusNoble) (diff)

Create a test suit that tests the QueueProcessor.py (See #10186)

For Tester:

(Access to datareducedev.isis.cclrc.ac.uk is preferable as avoids the need to set up a system.)

  1. Install and configure according to https://github.com/mantidproject/autoreduce/blob/master/WebApp/ISIS/README.md
  2. run python /var/www/autoreduce_webapp/manage.py test autoreduce_webapp.tests.QueueProcessorTestCase in the autoreduce_webapp directory.
  3. Ensure all 17 tests pass successfully

Expected output:

[root@datareducedev autoreduce_webapp]# python manage.py test autoreduce_webapp.tests.QueueProcessorTestCase
Creating test database for alias 'default'...
/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:1222: RuntimeWarning: DateTimeField ScriptFile.created received a naive datetime (2014-09-16 00:00:00) while time zone support is active.
  RuntimeWarning)

.................
----------------------------------------------------------------------
Ran 17 tests in 19.935s

OK
Destroying test database for alias 'default'...

Change History

comment:1 Changed 6 years ago by MarcusNoble

  • Status changed from new to assigned

comment:2 Changed 6 years ago by MarcusNoble

  • Status changed from assigned to verify
  • Resolution set to fixed

comment:3 Changed 6 years ago by MarcusNoble

  • Description modified (diff)

comment:4 Changed 6 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester set to Anders Markvardsen

comment:5 Changed 6 years ago by Anders Markvardsen

  • Status changed from verifying to closed

All 17 tests are passing

Note: See TracTickets for help on using tickets.