Skip to content

Commit

Permalink
Move test files into sub-directories
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed May 23, 2022
1 parent 817c56d commit fa1d315
Show file tree
Hide file tree
Showing 30 changed files with 4 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions python/test/test_action_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ def test_get_files_with_mock(self):

def test_parse_files(self):
gha = mock.MagicMock()
settings = self.get_settings(junit_files_glob=str(test_files_path / '*.xml'),
trx_files_glob=str(test_files_path / '*.trx'))
settings = self.get_settings(junit_files_glob=str(test_files_path / 'junit' / '*.xml'),
trx_files_glob=str(test_files_path / 'mstest' / '*.trx'))
actual = parse_files(settings, gha)

gha.warning.assert_not_called()
Expand Down
2 changes: 1 addition & 1 deletion python/test/test_junit.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from publish.junit import parse_junit_xml_files, process_junit_xml_elems, get_results, get_result, get_content, get_message, Disabled
from publish.unittestresults import ParsedUnitTestResults, UnitTestCase, ParseError

test_files_path = pathlib.Path(__file__).parent / 'files'
test_files_path = pathlib.Path(__file__).parent / 'files' / 'junit'


class TestElement(Element):
Expand Down
3 changes: 1 addition & 2 deletions python/test/test_publish.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import contextlib
import locale
import os
import pathlib
import unittest

Expand All @@ -12,7 +11,7 @@
from publish.unittestresults import get_test_results
from test import d, n

test_files_path = pathlib.Path(__file__).parent / 'files'
test_files_path = pathlib.Path(__file__).parent / 'files' / 'junit'

@contextlib.contextmanager
def temp_locale(encoding: str) -> Any:
Expand Down

0 comments on commit fa1d315

Please sign in to comment.