Adds global override test to Async

This commit is contained in:
Ilan Steemers
2015-10-27 11:10:46 +01:00
parent 2d10ff4404
commit e736d79a57
+8
View File
@@ -185,3 +185,11 @@ def test_async_class(broker):
a.run()
assert a.result_group() == [-1]
assert a.fetch_group() == [a.fetch()]
# global overrides
Conf.SYNC = True
Conf.CACHED = True
a = Async('math.floor', 1.5)
a.run()
assert a.result() == 1
Conf.SYNC = False
Conf.CACHED = False