Skip to content

Commit

Permalink
Fixed error in test causing slow test run
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed May 30, 2015
1 parent d12eeab commit c2e1e14
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/core/test_value.py
Expand Up @@ -60,11 +60,11 @@ def _value3(self):
@pytest.fixture
def app(request, manager, watcher):
app = App().register(manager)
watcher.wait("registered")
assert watcher.wait("registered")

def finalizer():
app.unregister()
watcher.wait("unregistered")
assert watcher.wait("unregistered")

request.addfinalizer(finalizer)

Expand All @@ -73,15 +73,15 @@ def finalizer():

def test_value(app, watcher):
x = app.fire(hello())
watcher.wait("hello")
assert watcher.wait("hello")

assert "Hello World!" in x
assert x.value == "Hello World!"


def test_nested_value(app, watcher):
x = app.fire(test())
watcher.wait("test")
assert watcher.wait("test")

assert x.value == "Hello World!"
assert str(x) == "Hello World!"
Expand All @@ -91,7 +91,7 @@ def test_value_notify(app, watcher):
x = app.fire(hello())
x.notify = True

watcher.wait("hello_value_changed")
assert watcher.wait("hello_value_changed")

assert "Hello World!" in x
assert x.value == "Hello World!"
Expand All @@ -102,7 +102,7 @@ def test_nested_value_notify(app, watcher):
x = app.fire(test())
x.notify = True

watcher.wait("hello_value_changed")
assert watcher.wait("test_value_changed")

assert x.value == "Hello World!"
assert str(x) == "Hello World!"
Expand All @@ -111,7 +111,7 @@ def test_nested_value_notify(app, watcher):

def test_error_value(app, watcher):
x = app.fire(foo())
watcher.wait("foo")
assert watcher.wait("foo")

etype, evalue, etraceback = x
assert etype is Exception
Expand All @@ -121,7 +121,7 @@ def test_error_value(app, watcher):

def test_multiple_values(app, watcher):
v = app.fire(values())
watcher.wait("values_complete")
assert watcher.wait("values_complete")

assert isinstance(v.value, list)

Expand Down

0 comments on commit c2e1e14

Please sign in to comment.