mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 11:16:41 +00:00
pytest API
This commit is contained in:
parent
cfda360294
commit
16e7bc5e07
@ -11,10 +11,10 @@ from allmydata.util import configutil
|
|||||||
|
|
||||||
import util
|
import util
|
||||||
|
|
||||||
import pytest
|
import pytest_twisted
|
||||||
|
|
||||||
|
|
||||||
@pytest.inlineCallbacks
|
@pytest_twisted.inlineCallbacks
|
||||||
def test_create_certificate(reactor):
|
def test_create_certificate(reactor):
|
||||||
gm_config = yield util.run_tahoe(
|
gm_config = yield util.run_tahoe(
|
||||||
reactor, "grid-manager", "--config", "-", "create",
|
reactor, "grid-manager", "--config", "-", "create",
|
||||||
@ -42,7 +42,7 @@ def test_create_certificate(reactor):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.inlineCallbacks
|
@pytest_twisted.inlineCallbacks
|
||||||
def test_remove_client(reactor):
|
def test_remove_client(reactor):
|
||||||
gm_config = yield util.run_tahoe(
|
gm_config = yield util.run_tahoe(
|
||||||
reactor, "grid-manager", "--config", "-", "create",
|
reactor, "grid-manager", "--config", "-", "create",
|
||||||
@ -71,7 +71,7 @@ def test_remove_client(reactor):
|
|||||||
assert json.loads(gm_config)['storage_servers'].has_key('bob')
|
assert json.loads(gm_config)['storage_servers'].has_key('bob')
|
||||||
|
|
||||||
|
|
||||||
@pytest.inlineCallbacks
|
@pytest_twisted.inlineCallbacks
|
||||||
def test_remove_last_client(reactor):
|
def test_remove_last_client(reactor):
|
||||||
gm_config = yield util.run_tahoe(
|
gm_config = yield util.run_tahoe(
|
||||||
reactor, "grid-manager", "--config", "-", "create",
|
reactor, "grid-manager", "--config", "-", "create",
|
||||||
@ -93,7 +93,7 @@ def test_remove_last_client(reactor):
|
|||||||
assert not json.loads(gm_config).has_key('storage_servers')
|
assert not json.loads(gm_config).has_key('storage_servers')
|
||||||
|
|
||||||
|
|
||||||
@pytest.inlineCallbacks
|
@pytest_twisted.inlineCallbacks
|
||||||
def test_reject_storage_server(reactor, request, storage_nodes, temp_dir, introducer_furl, flog_gatherer):
|
def test_reject_storage_server(reactor, request, storage_nodes, temp_dir, introducer_furl, flog_gatherer):
|
||||||
gm_config = yield util.run_tahoe(
|
gm_config = yield util.run_tahoe(
|
||||||
reactor, "grid-manager", "--config", "-", "create",
|
reactor, "grid-manager", "--config", "-", "create",
|
||||||
|
Loading…
Reference in New Issue
Block a user