Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove remaining unit terms #336

Merged
merged 1 commit into from Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Expand Up @@ -4,8 +4,8 @@ LABEL repository="https://github.com/EnricoMi/publish-unit-test-result-action"
LABEL homepage="https://github.com/EnricoMi/publish-unit-test-result-action"
LABEL maintainer="Enrico Minack <github@Enrico.Minack.dev>"

LABEL com.github.actions.name="Publish Unit Test Results"
LABEL com.github.actions.description="A GitHub Action to publish unit test results."
LABEL com.github.actions.name="Publish Test Results"
LABEL com.github.actions.description="A GitHub Action to publish test results."
LABEL com.github.actions.icon="check-circle"
LABEL com.github.actions.color="green"

Expand All @@ -18,6 +18,6 @@ RUN apk add --no-cache build-base libffi-dev; \
apk del build-base libffi-dev

COPY python/publish /action/publish
COPY python/publish_unit_test_results.py /action/
COPY python/publish_test_results.py /action/

ENTRYPOINT ["python", "/action/publish_unit_test_results.py"]
ENTRYPOINT ["python", "/action/publish_test_results.py"]
2 changes: 1 addition & 1 deletion action.yml
@@ -1,4 +1,4 @@
name: 'Publish Unit Test Results'
name: 'Publish Test Results'
author: 'EnricoMi'
description: 'A GitHub Action that publishes test results on GitHub'

Expand Down
4 changes: 2 additions & 2 deletions composite/action.yml
@@ -1,4 +1,4 @@
name: 'Publish Unit Test Results'
name: 'Publish Test Results'
author: 'EnricoMi'
description: 'A GitHub Action that publishes test results on GitHub'

Expand Down Expand Up @@ -146,7 +146,7 @@ runs:
id: test-results
run: |
echo '##[group]Publish Test Results'
python3 $GITHUB_ACTION_PATH/../python/publish_unit_test_results.py
python3 $GITHUB_ACTION_PATH/../python/publish_test_results.py
echo '##[endgroup]'
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions python/test/test_action_script.py
Expand Up @@ -16,7 +16,7 @@
pull_request_build_modes, punctuation_space
from publish.github_action import GithubAction
from publish.unittestresults import ParsedUnitTestResults, ParseError
from publish_unit_test_results import get_conclusion, get_commit_sha, get_var, \
from publish_test_results import get_conclusion, get_commit_sha, get_var, \
check_var, check_var_condition, deprecate_var, deprecate_val, log_parse_errors, \
get_settings, get_annotations_config, Settings, get_files, throttle_gh_request_raw, is_float, parse_files, main
from test_utils import chdir
Expand Down Expand Up @@ -530,7 +530,7 @@ def do_test_get_settings(self,
# its true behaviour is tested in get_annotations_config*
annotations_config = options.get('CHECK_RUN_ANNOTATIONS').split(',') \
if options.get('CHECK_RUN_ANNOTATIONS') is not None else []
with mock.patch('publish_unit_test_results.get_annotations_config', return_value=annotations_config) as m:
with mock.patch('publish_test_results.get_annotations_config', return_value=annotations_config) as m:
if gha is None:
gha = mock.MagicMock()

Expand Down Expand Up @@ -793,7 +793,7 @@ def test_get_files_include_and_exclude(self):
self.assertEqual(['file2.txt'], sorted(files))

def test_get_files_with_mock(self):
with mock.patch('publish_unit_test_results.glob') as m:
with mock.patch('publish_test_results.glob') as m:
files = get_files('*.txt\n!file1.txt')
self.assertEqual([], files)
self.assertEqual([mock.call('*.txt', recursive=True), mock.call('file1.txt', recursive=True)], m.call_args_list)
Expand Down Expand Up @@ -881,7 +881,7 @@ def test_throttle_gh_request_raw(self):
throttled_method = throttle_gh_request_raw(2, 5, method)

def test_request(verb: str, expected_sleep: Optional[float]):
with mock.patch('publish_unit_test_results.time.sleep') as sleep:
with mock.patch('publish_test_results.time.sleep') as sleep:
response = throttled_method('cnx', verb, 'url', 'headers', 'input')

self.assertEqual('response', response)
Expand Down Expand Up @@ -953,7 +953,7 @@ def do_raise(*args):
# if this is raised, the tested main method did not return where expected but continued
raise RuntimeError('This is not expected to be called')

with mock.patch('publish_unit_test_results.get_files') as m:
with mock.patch('publish_test_results.get_files') as m:
m.side_effect = do_raise
main(settings, gha)

Expand Down Expand Up @@ -999,7 +999,7 @@ def test_deprecate_var(self):
deprecate_var('set', 'deprecated_var', 'replacement', gha)
gha.warning.assert_called_once_with('Option deprecated_var is deprecated! replacement')

with mock.patch('publish_unit_test_results.logger') as l:
with mock.patch('publish_test_results.logger') as l:
deprecate_var('set', 'deprecated_var', 'replacement', None)
l.warning.assert_called_once_with('Option deprecated_var is deprecated! replacement')

Expand All @@ -1014,7 +1014,7 @@ def test_deprecate_val(self):
deprecate_val('deprecated', 'deprecated_var', {'deprecated': 'replace'}, gha)
gha.warning.assert_called_once_with('Value "deprecated" for option deprecated_var is deprecated! Instead, use value "replace".')

with mock.patch('publish_unit_test_results.logger') as l:
with mock.patch('publish_test_results.logger') as l:
deprecate_val('deprecated', 'deprecated_var', {'deprecated': 'replace'}, gha)
l.assert_not_called()

Expand Down
2 changes: 1 addition & 1 deletion python/test/test_github.py
Expand Up @@ -12,7 +12,7 @@
import requests.exceptions
from flask import Flask, Response

from publish_unit_test_results import get_github
from publish_test_results import get_github
from publish.github_action import GithubAction


Expand Down