Skip to content

Instantly share code, notes, and snippets.

def post_data_to_url(self, url, user_info, headers=None, access_token=None):
if headers is None:
if access_token is None:
head = self.dict_config['head']
else:
head = self.dict_config['head'].copy()
head.update({'X-PG-Authorization': access_token})
else:
head = headers
allure.MASTER_HELPER.attach("url", str(url))
{
"NAMBER_APLICANTS_CONTAINER": 4,
"NAMBER_VACANCIES_CONTAINER": 4,
"base_url": "https://da.profgallery.tech/"
}