def setup_class(cls): cls.controller = BeaconsController() cls.persistence = BeaconsMemoryPersistence() cls.service = BeaconsHttpServiceV1() cls.service.configure(http_config) cls.client = BeaconsHttpClientV1() cls.client.configure(http_config) cls.references = References.from_tuples( Descriptor('beacons', 'persistence', 'memory', 'default', '1.0'), cls.persistence, Descriptor('beacons', 'controller', 'default', 'default', '1.0'), cls.controller, Descriptor('beacons', 'service', 'http', 'default', '1.0'), cls.service, Descriptor('beacons', 'client', 'http', 'default', '1.0'), cls.client ) cls.controller.set_references(cls.references) cls.client.set_references(cls.references) cls.service.set_references(cls.references) cls.fixture = BeaconsClientV1Fixture(cls.client) cls.persistence.open(None) cls.service.open(None) cls.client.open(None)
def setup_class(cls): cls._persistence = BeaconsMemoryPersistence() cls._controller = BeaconsController() references = References.from_tuples(Descriptor('beacons', 'persistence', 'memory', 'default', '1.0'), cls._persistence, Descriptor('beacons', 'controller', 'default', 'default', '1.0'), cls._controller) cls._controller.set_references(references) cls._persistence.open(None)
def setup_class(cls): cls._persistence = BeaconsMemoryPersistence() cls._controller = BeaconsController() cls._service = BeaconsHttpServiceV1() cls._service.configure(ConfigParams.from_tuples( 'connection.protocol', 'http', 'connection.port', 3002, 'connection.host', 'localhost')) references = References.from_tuples(Descriptor('beacons', 'persistence', 'memory', 'default', '1.0'), cls._persistence, Descriptor('beacons', 'controller', 'default', 'default', '1.0'), cls._controller, Descriptor('beacons', 'service', 'http', 'default', '1.0'), cls._service) cls._controller.set_references(references) cls._service.set_references(references) cls._persistence.open(None) cls._service.open(None)
def setup_class(cls): cls.persistence = BeaconsMemoryPersistence() cls.fixture = BeaconsPersistenceFixture(cls.persistence)