Changeset 9343


Ignore:
Timestamp:
16 Oct 2012, 16:18:38 (12 years ago)
Author:
uli
Message:

Fix FakeJobManager? to work with different instances in different tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/testing.py

    r9342 r9343  
    439439class FakeJobManager(object):
    440440    # A fake job manager for testing async functionality
    441     _jobs = dict()
    442     _curr_num = 1
     441
     442    def __init__(self):
     443        # make sure each instance maintains an own set of jobs/nums.
     444        self._jobs = dict()
     445        self._curr_num = 1
    443446
    444447    def get(self, job_id):
Note: See TracChangeset for help on using the changeset viewer.