Tests:
* moved 'tests' folder inside 'atreal_openads' module
* removed useless settings.py file
* removed useless imports
* added test file 'resources'
* fixed file path (no more vagrant)
* updated the test case of 'upload2ForwardFile' to test for 'plan' type_fichier
* added HTTP Basic credentials to 'atreal_openads' fixture (removed 'token')
Fixes:
* stop guessing ForwardFile.type_fichier based on file path
Feature:
* added two new connector fields to store HTTP Basic credentials
* removed one connector field that stored the HTTP auth token
Logging:
* added debuging and warning messages
* replaced the python interpolation '%' by function args ','
Cleaning:
* removed functions 'ajob', 'afile'
* removed unused imports
Fixes:
* added missing imports
* using string in dictionary keys
Features:
* added support for a payload build from the request instead of hardcoded in
function 'create_dossier()'
* added a warning message when an APIError is raised all functions
* added the name/key of the error in the error message build from a response
* added a function 'normalize()' to normalize user's input in the payload
* changed endpoint arguments coming from request parameters instead of URI path
in functions 'create_dossier()', 'get_dossier()', 'get_courrier()' and
'get_fwd_files_status()'
* changed JSON response to use an explicit key to hold file data in function
'create_dossier()':'recepisse' and 'get_courrier()':'courrier'
* removed the useless key 'data' in all the JSON response
* removed useless case 'jsondata' in function 'afile()'
Cleaning:
* Removed useless variable 'dossier_payload'
Tests:
* added request containing the payload in the test case for 'create_dossier()'
* added the name/key of the error in the error message build from a response
* used the explicit keys 'recepisse' and 'courrier' in JSON responses
* removed the 'data' key from JSON responses
* function 'echofile()' support for posted file content, not just url
Bug fix
* corrected file content in function 'afile()'
* corrected payload assignment in function 'get_fwd_files_status()'
* added 'type_dossier' to job creation in function 'create_dossier()'
Coding style: better indentation
Logging : 'debug' instead of 'info'
Locale : identifier in english instead of french