Skip to content

Commit

Permalink
Address @apollo13's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Jan 29, 2017
1 parent 77c36d5 commit a8c50d3
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions tests/core/test_call_stop.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function

import pytest
Expand Down Expand Up @@ -29,20 +30,12 @@ def on_test_ignored(self):


@pytest.fixture
def app(request, manager, watcher):
app = App().register(manager)
assert watcher.wait("registered")

def finalizer():
app.unregister()

request.addfinalizer(finalizer)

return app
def app(request):
return App()


def test_call_stop(manager, watcher, app):
x = manager.fire(test())
assert watcher.wait("test_success")
def test_call_stop(app):
x = app.fire(test())
app.tick()

assert x.value is None

0 comments on commit a8c50d3

Please sign in to comment.