fix tests

This commit is contained in:
mac12m99
2021-01-25 14:45:36 +01:00
parent 03a5253e0e
commit 51b138dd88
3 changed files with 7 additions and 12 deletions
+6 -6
View File
@@ -22,12 +22,12 @@ jobs:
./tests/run.sh
- name: Commit & Push changes
uses: cpina/github-action-push-to-another-repository@cp_instead_of_deleting
uses: dmnemec/copy_file_to_another_repo_action@v1.0.4
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: "reports"
destination-github-username: "kodiondemand"
destination-repository-name: "kodiondemand.github.io"
user-email: "tests@kod.bot"
commit-message: "Test suite"
source_file: 'reports'
destination_repo: 'kodiondemand/kodiondemand.github.io'
user_email: 'tests@kod.bot'
user_name: 'bot'
commit_message: 'Test suite'
+1 -1
View File
@@ -418,7 +418,7 @@ def downloadpage(url, **opt):
response['data'] = response['data'].decode('ISO-8859-1')
if req.headers.get('Server', '').startswith('cloudflare') and response_code in [429, 503, 403]\
and not opt.get('CF', False) and 'Cloudflare Ray ID' in response['data']:
and not opt.get('CF', False) and 'Ray ID' in response['data']:
logger.debug("CF retry... for domain: %s" % domain)
from lib import proxytranslate
gResp = proxytranslate.process_request_proxy(url)
-5
View File
@@ -126,11 +126,6 @@
{%- endif %}
{%- endif %}
{%- endfor %}
<!-- <tr>-->
<!-- <td colspan="3">-->
<!-- Total: {{ summaries[test_case_name].total }}, Pass: {{ summaries[test_case_name].success }}{% if summaries[test_case_name].failure %}, Fail: {{ summaries[test_case_name].failure }}{% endif %}{% if summaries[test_case_name].error %}, Error: {{ summaries[test_case_name].error }}{% endif %}{% if summaries[test_case_name].skip %}, Skip: {{ summaries[test_case_name].skip }}{% endif %} &#45;&#45; Duration: {{ summaries[test_case_name].duration }}-->
<!-- </td>-->
<!-- </tr>-->
</tbody>
</table>
</div>