Exemple #1
0
 def test_update_resource(self):
     objectid = utils.get_test_current_objectid()
     content = 'updated by test.'
     core.update_resource(utils.EXPECTED_PROJECT, utils.EXPECTED_REPOSITORY,
                          utils.EXPECTED_BRANCH, utils.EXPECTED_RESOURCE,
                          content, objectid=objectid)
     assert utils.get_test_blob_content() == content
 def test_update_resource(self):
     rv = self.app.get(get_path(['blob',
                                 utils.EXPECTED_BRANCH,
                                 utils.EXPECTED_RESOURCE]))
     content = 'updated by test.'
     data = json.dumps({'objectid': utils.get_test_current_objectid(),
                        'contents': content})
     rv = self.app.post(get_path(['blob',
                                  utils.EXPECTED_BRANCH,
                                  utils.EXPECTED_RESOURCE]), data=data)
     assert utils.get_test_blob_content() == content
Exemple #3
0
 def test_update_resource(self):
     rv = self.app.get(
         get_path(['blob', utils.EXPECTED_BRANCH, utils.EXPECTED_RESOURCE]))
     content = 'updated by test.'
     data = json.dumps({
         'objectid': utils.get_test_current_objectid(),
         'contents': content
     })
     rv = self.app.post(get_path(
         ['blob', utils.EXPECTED_BRANCH, utils.EXPECTED_RESOURCE]),
                        data=data)
     assert utils.get_test_blob_content() == content