From 4fdd38b138b8f4e102f1b7eb1e258180c74c4bd0 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 18 Apr 2022 16:28:54 +0100 Subject: [PATCH] Fix some typos and debug settings --- python/publish_unit_test_results.py | 4 ++-- python/test/test_action_yml.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python/publish_unit_test_results.py b/python/publish_unit_test_results.py index c17d9abb..1e2eac4a 100644 --- a/python/publish_unit_test_results.py +++ b/python/publish_unit_test_results.py @@ -301,8 +301,8 @@ def get_settings(options: dict, gha: Optional[GithubAction] = None) -> Settings: check_var(settings.token, 'GITHUB_TOKEN', 'GitHub token') check_var(settings.repo, 'GITHUB_REPOSITORY', 'GitHub repository') check_var(settings.commit, 'COMMIT, GITHUB_SHA or event file', 'Commit SHA') - check_var(settings.comment_mode, 'COMMENT_MODE', 'Commit mode', comment_modes) - check_var(settings.comment_condition, 'COMMENT_ON', 'Commit condition', comment_conditions) + check_var(settings.comment_mode, 'COMMENT_MODE', 'Comment mode', comment_modes) + check_var(settings.comment_condition, 'COMMENT_ON', 'Comment condition', comment_conditions) check_var(settings.pull_request_build, 'PULL_REQUEST_BUILD', 'Pull Request build', pull_request_build_modes) check_var(settings.hide_comment_mode, 'HIDE_COMMENTS', 'Hide comments mode', hide_comments_modes) check_var(settings.check_run_annotation, 'CHECK_RUN_ANNOTATIONS', 'Check run annotations', available_annotations) diff --git a/python/test/test_action_yml.py b/python/test/test_action_yml.py index 09c59239..4eaf75ad 100644 --- a/python/test/test_action_yml.py +++ b/python/test/test_action_yml.py @@ -17,7 +17,6 @@ def test_composite_action(self): self.assertIn('runs', composite_action) dockerfile_action_wo_runs = {k: v for k, v in dockerfile_action.items() if k != 'runs'} composite_action_wo_runs = {k: v for k, v in composite_action.items() if k != 'runs'} - self.maxDiff = None self.assertEqual(dockerfile_action_wo_runs, composite_action_wo_runs) self.assertIn(('using', 'composite'), composite_action.get('runs', {}).items())