Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Debug unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
xlz-jbleclere committed Aug 24, 2020
1 parent b51995f commit 339b603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def health__test_segment_index():
##############################################################################
# test_retry_mechanism.py

# test_api_retry_disabled functions
# test_api_retry functions
@app.route('/test_api_retry/o/token/', methods=['GET', 'POST'])
def otoken__test_api_retry():
return redirect(request.url_root + '/o/token/', code=307)
Expand Down
6 changes: 6 additions & 0 deletions tests/test_retry_mechanism.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def test_api_retry_disabled(accelize_drm, conf_json, cred_json, async_handler, l
conf_json['settings']['log_file_path'] = logpath
conf_json['settings']['log_file_type'] = 1
conf_json.save()
context = {'cnt':0}
set_context(context)
assert get_context() == context
drm_manager = accelize_drm.DrmManager(
conf_json.path,
cred_json.path,
Expand Down Expand Up @@ -70,6 +73,9 @@ def test_api_retry_enabled(accelize_drm, conf_json, cred_json, async_handler, li
conf_json['settings']['log_file_path'] = logpath
conf_json['settings']['log_file_type'] = 1
conf_json.save()
context = {'cnt':0}
set_context(context)
assert get_context() == context
drm_manager = accelize_drm.DrmManager(
conf_json.path,
cred_json.path,
Expand Down

0 comments on commit 339b603

Please sign in to comment.