コード例 #1
0
ファイル: http_store.py プロジェクト: scottc99/sumatra
 def _put_project(self, project_name, long_name='', description=''):
     url = "%s%s/" % (self.server_url, project_name)
     data = serialization.encode_project_info(long_name, description)
     headers = {'Content-Type': 'application/vnd.sumatra.project-v%d+json' % API_VERSION}
     response, content = self.client.request(url, 'PUT', data,
                                             headers=headers)
     return response, content
コード例 #2
0
ファイル: http_store.py プロジェクト: wd15/sumatra
 def _put_project(self, project_name, long_name='', description=''):
     url = "%s%s/" % (self.server_url, project_name)
     data = serialization.encode_project_info(long_name, description)
     headers = {'Content-Type': 'application/vnd.sumatra.project-v%d+json' % API_VERSION}
     response, content = self.client.request(url, 'PUT', data,
                                             headers=headers)
     return response, content
コード例 #3
0
ファイル: test_recordstore.py プロジェクト: chabotsi/sumatra
 def test_encode_project_info(self):
     serialization.encode_project_info("foo", "description of foo")
コード例 #4
0
 def test_encode_project_info(self):
     serialization.encode_project_info("foo", "description of foo")