Skip to content

Commit

Permalink
buildbot.util.loop, new tests, buildbot.test.state
Browse files Browse the repository at this point in the history
* Add a new test utility, buildbot.test.state, and document it
* move loop to buildbot.util
* new and improved tests for loop
  • Loading branch information
Dustin J. Mitchell committed Feb 21, 2010
1 parent 2d0b6bf commit f661ad2
Show file tree
Hide file tree
Showing 6 changed files with 304 additions and 271 deletions.
244 changes: 0 additions & 244 deletions buildbot/broken_test/unit/test_loop.py

This file was deleted.

2 changes: 1 addition & 1 deletion buildbot/schedulers/manager.py
Expand Up @@ -37,7 +37,7 @@

from twisted.internet import defer
from twisted.python import log
from buildbot import loop
from buildbot.util import loop
from buildbot.util import defaultdict
from buildbot.util.eventual import eventually

Expand Down
9 changes: 9 additions & 0 deletions buildbot/test/state.py
@@ -0,0 +1,9 @@
class State(object):
"""
A simple class you can use to keep track of state throughout
a test. Just assign whatever you want to its attributes. Its
constructor provides a shortcut to setting initial values for
attributes
"""
def __init__(self, **kwargs):
self.__dict__.update(kwargs)

0 comments on commit f661ad2

Please sign in to comment.