def test_project_update(controller): project = Project() project.setVariables([{'name': 'TEST'}]) project.setSupplier({'logo': 'test.png', 'url': 'http://domain'}) project.update() mock = controller._http_client.createHTTPQuery args, kwargs = mock.call_args body = kwargs['body'] assert body['variables'] == [{'name': 'TEST'}] assert body['supplier'] == {'logo': 'test.png', 'url': 'http://domain'}
def test_project_variables(): project = Project() project.setVariables([{'name': 'TEST'}]) variables = project.variables() assert variables == [{'name': 'TEST'}]