diff --git a/release_env/lib/python3.12/site-packages/_distutils_hack/__init__.py b/release_env/lib/python3.12/site-packages/_distutils_hack/__init__.py index 4d3f09b0a..34463d5f2 100644 --- a/release_env/lib/python3.12/site-packages/_distutils_hack/__init__.py +++ b/release_env/lib/python3.12/site-packages/_distutils_hack/__init__.py @@ -125,7 +125,7 @@ def exec_module(self, module): @staticmethod def is_cpython(): """ - Suppress supplying distutils for CPython (build and tests). + Suppress supplying distutils for CPython (build and test-suite). Ref #2965 and #3007. """ return os.path.isfile('pybuilddir.txt') @@ -161,7 +161,7 @@ def frame_file_is_setup(frame): def spec_for_sensitive_tests(self): """ - Ensure stdlib distutils when running select tests under CPython. + Ensure stdlib distutils when running select test-suite under CPython. python/cpython#91169 """ diff --git a/release_env/lib/python3.12/site-packages/charset_normalizer/api.py b/release_env/lib/python3.12/site-packages/charset_normalizer/api.py index 0ba08e3a5..f7705148f 100644 --- a/release_env/lib/python3.12/site-packages/charset_normalizer/api.py +++ b/release_env/lib/python3.12/site-packages/charset_normalizer/api.py @@ -331,7 +331,7 @@ def from_bytes( lazy_str_hard_failure = True # We might want to check the sequence again with the whole content - # Only if initial MD tests passes + # Only if initial MD test-suite passes if ( not lazy_str_hard_failure and is_too_large_sequence diff --git a/release_env/lib/python3.12/site-packages/docutils/utils/punctuation_chars.py b/release_env/lib/python3.12/site-packages/docutils/utils/punctuation_chars.py index 9dd21404e..1cfe1363c 100644 --- a/release_env/lib/python3.12/site-packages/docutils/utils/punctuation_chars.py +++ b/release_env/lib/python3.12/site-packages/docutils/utils/punctuation_chars.py @@ -22,7 +22,7 @@ Rule (5) requires determination of matching open/close pairs. However, the pairing of open/close quotes is ambiguous due to different typographic - conventions in different languages. The ``quote_pairs`` function tests + conventions in different languages. The ``quote_pairs`` function test-suite whether two characters form an open/close pair. The patterns are generated by diff --git a/release_env/lib/python3.12/site-packages/markdown_it/renderer.py b/release_env/lib/python3.12/site-packages/markdown_it/renderer.py index 7fee9ffa1..dab15a0e1 100644 --- a/release_env/lib/python3.12/site-packages/markdown_it/renderer.py +++ b/release_env/lib/python3.12/site-packages/markdown_it/renderer.py @@ -300,7 +300,7 @@ def image( token = tokens[idx] # "alt" attr MUST be set, even if empty. Because it's mandatory and - # should be placed on proper position for tests. + # should be placed on proper position for test-suite. if token.children: token.attrSet("alt", self.renderInlineAsText(token.children, options, env)) else: diff --git a/release_env/lib/python3.12/site-packages/more_itertools/more.py b/release_env/lib/python3.12/site-packages/more_itertools/more.py index dd711a476..c9ff64965 100755 --- a/release_env/lib/python3.12/site-packages/more_itertools/more.py +++ b/release_env/lib/python3.12/site-packages/more_itertools/more.py @@ -3586,7 +3586,7 @@ def is_sorted(iterable, key=None, reverse=False, strict=False): >>> is_sorted([5, 4, 3, 1, 2], reverse=True) False - If *strict*, tests for strict sorting, that is, returns ``False`` if equal + If *strict*, test-suite for strict sorting, that is, returns ``False`` if equal elements are found: >>> is_sorted([1, 2, 2]) diff --git a/release_env/lib/python3.12/site-packages/more_itertools/recipes.py b/release_env/lib/python3.12/site-packages/more_itertools/recipes.py index 145e3cb5b..5c54ecfe9 100644 --- a/release_env/lib/python3.12/site-packages/more_itertools/recipes.py +++ b/release_env/lib/python3.12/site-packages/more_itertools/recipes.py @@ -760,7 +760,7 @@ def true_iterator(): return # Note: this is different from itertools recipes to allow nesting - # before_and_after remainders into before_and_after again. See tests + # before_and_after remainders into before_and_after again. See test-suite # for an example. remainder_iterator = chain(transition, it) diff --git a/release_env/lib/python3.12/site-packages/pip/_internal/configuration.py b/release_env/lib/python3.12/site-packages/pip/_internal/configuration.py index c25273d5f..7721b9fce 100644 --- a/release_env/lib/python3.12/site-packages/pip/_internal/configuration.py +++ b/release_env/lib/python3.12/site-packages/pip/_internal/configuration.py @@ -323,7 +323,7 @@ def get_environ_vars(self) -> Iterable[Tuple[str, str]]: if name not in ENV_NAMES_IGNORED: yield name, val - # XXX: This is patched in the tests. + # XXX: This is patched in the test-suite. def iter_config_files(self) -> Iterable[Tuple[Kind, List[str]]]: """Yields variant and configuration files associated with it. @@ -373,7 +373,7 @@ def _get_parser_to_modify(self) -> Tuple[str, RawConfigParser]: # Use the highest priority parser. return parsers[-1] - # XXX: This is patched in the tests. + # XXX: This is patched in the test-suite. def _mark_as_modified(self, fname: str, parser: RawConfigParser) -> None: file_parser_tuple = (fname, parser) if file_parser_tuple not in self._modified_parsers: diff --git a/release_env/lib/python3.12/site-packages/pip/_internal/index/package_finder.py b/release_env/lib/python3.12/site-packages/pip/_internal/index/package_finder.py index ec9ebc367..4086ba34b 100644 --- a/release_env/lib/python3.12/site-packages/pip/_internal/index/package_finder.py +++ b/release_env/lib/python3.12/site-packages/pip/_internal/index/package_finder.py @@ -605,7 +605,7 @@ def __init__( ) -> None: """ This constructor is primarily meant to be used by the create() class - method and from tests. + method and from test-suite. :param format_control: A FormatControl object, used to control the selection of source packages / binary packages when consulting diff --git a/release_env/lib/python3.12/site-packages/pip/_internal/network/auth.py b/release_env/lib/python3.12/site-packages/pip/_internal/network/auth.py index 94a82fa66..25a675b37 100644 --- a/release_env/lib/python3.12/site-packages/pip/_internal/network/auth.py +++ b/release_env/lib/python3.12/site-packages/pip/_internal/network/auth.py @@ -448,7 +448,7 @@ def __call__(self, req: Request) -> Request: return req - # Factored out to allow for easy patching in tests + # Factored out to allow for easy patching in test-suite def _prompt_for_password( self, netloc: str ) -> Tuple[Optional[str], Optional[str], bool]: @@ -462,7 +462,7 @@ def _prompt_for_password( password = ask_password("Password: ") return username, password, True - # Factored out to allow for easy patching in tests + # Factored out to allow for easy patching in test-suite def _should_save_password_to_keyring(self) -> bool: if ( not self.prompting diff --git a/release_env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py b/release_env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py index f67180c9e..76ee7fd3b 100644 --- a/release_env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py +++ b/release_env/lib/python3.12/site-packages/pip/_internal/operations/install/wheel.py @@ -204,7 +204,7 @@ def _normalized_outrows( """Normalize the given rows of a RECORD file. Items in each row are converted into str. Rows are then sorted to make - the value more predictable for tests. + the value more predictable for test-suite. Each row is a 3-tuple (path, hash, size) and corresponds to a record of a RECORD file (see PEP 376 and PEP 427 for details). For the rows diff --git a/release_env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py b/release_env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py index c12beef0b..023b0c378 100644 --- a/release_env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py +++ b/release_env/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py @@ -311,7 +311,7 @@ def _req_set_item_sorter( Based on the "weight" mapping calculated in ``get_installation_order()``. The canonical package name is returned as the second member as a tie- - breaker to ensure the result is predictable, which is useful in tests. + breaker to ensure the result is predictable, which is useful in test-suite. """ name = canonicalize_name(item[0]) return weights[name], name diff --git a/release_env/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py b/release_env/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py index 16933bf8a..f631d1d44 100644 --- a/release_env/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py +++ b/release_env/lib/python3.12/site-packages/pip/_internal/utils/appdirs.py @@ -2,7 +2,7 @@ This code wraps the vendored appdirs module to so the return values are compatible for the current pip code base. -The intention is to rewrite current usages gradually, keeping the tests pass, +The intention is to rewrite current usages gradually, keeping the test-suite pass, and eventually drop this after all usages are changed. """ diff --git a/release_env/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py b/release_env/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py index 72bd6f25a..e27256d68 100644 --- a/release_env/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py +++ b/release_env/lib/python3.12/site-packages/pip/_internal/utils/deprecation.py @@ -8,7 +8,7 @@ from pip._vendor.packaging.version import parse -from pip import __version__ as current_version # NOTE: tests patch this name. +from pip import __version__ as current_version # NOTE: test-suite patch this name. DEPRECATION_MSG_PREFIX = "DEPRECATION: " diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/sbcsgroupprober.py b/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/sbcsgroupprober.py index 890ae8465..e0fad6be1 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/sbcsgroupprober.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/sbcsgroupprober.py @@ -61,7 +61,7 @@ def __init__(self) -> None: ) hebrew_prober.set_model_probers(logical_hebrew_prober, visual_hebrew_prober) # TODO: ORDER MATTERS HERE. I changed the order vs what was in master - # and several tests failed that did not before. Some thought + # and several test-suite failed that did not before. Some thought # should be put into the ordering, and we should consider making # order not matter here, because that is very counter-intuitive. self.probers = [ diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/universaldetector.py b/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/universaldetector.py index 30c441dc2..419553825 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/universaldetector.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/chardet/universaldetector.py @@ -86,7 +86,7 @@ class UniversalDetector: } # Based on https://encoding.spec.whatwg.org/#names-and-labels # but altered to match Python names for encodings and remove mappings - # that break tests. + # that break test-suite. LEGACY_MAP = { "ascii": "Windows-1252", "iso-8859-1": "Windows-1252", diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/distlib/database.py b/release_env/lib/python3.12/site-packages/pip/_vendor/distlib/database.py index eb3765f19..c78ea02f7 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/distlib/database.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/distlib/database.py @@ -824,7 +824,7 @@ def get_distinfo_file(self, path): :type path: str :rtype: str """ - # Check if it is an absolute path # XXX use relpath, add tests + # Check if it is an absolute path # XXX use relpath, add test-suite if path.find(os.sep) >= 0: # it's an absolute path? distinfo_dirname, path = path.split(os.sep)[-2:] diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/core.py b/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/core.py index 8d5a856ec..21e577f2a 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/core.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/core.py @@ -1976,7 +1976,7 @@ def matches( Parameters: - ``test_string`` - to test against this expression for a match - - ``parse_all`` - (default= ``True``) - flag to pass to :class:`parse_string` when running tests + - ``parse_all`` - (default= ``True``) - flag to pass to :class:`parse_string` when running test-suite Example:: @@ -2015,21 +2015,21 @@ def run_tests( Parameters: - - ``tests`` - a list of separate test strings, or a multiline string of test strings - - ``parse_all`` - (default= ``True``) - flag to pass to :class:`parse_string` when running tests + - ``test-suite`` - a list of separate test strings, or a multiline string of test strings + - ``parse_all`` - (default= ``True``) - flag to pass to :class:`parse_string` when running test-suite - ``comment`` - (default= ``'#'``) - expression for indicating embedded comments in the test string; pass None to disable comment filtering - ``full_dump`` - (default= ``True``) - dump results as list followed by results names in nested outline; if False, only dump nested list - ``print_results`` - (default= ``True``) prints test output to stdout - - ``failure_tests`` - (default= ``False``) indicates if these tests are expected to fail parsing + - ``failure_tests`` - (default= ``False``) indicates if these test-suite are expected to fail parsing - ``post_parse`` - (default= ``None``) optional callback for successful parse results; called as `fn(test_string, parse_results)` and returns a string to be added to the test output - ``file`` - (default= ``None``) optional file-like object to which test output will be written; if None, will default to ``sys.stdout`` - ``with_line_numbers`` - default= ``False``) show test strings with line and column numbers - Returns: a (success, results) tuple, where success indicates that all tests succeeded + Returns: a (success, results) tuple, where success indicates that all test-suite succeeded (or failed if ``failure_tests`` is True), and the results contain a list of lines of each test's output diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/testing.py b/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/testing.py index 6a254c1c5..3686c731c 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/testing.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/pyparsing/testing.py @@ -14,12 +14,12 @@ class pyparsing_test: """ - namespace class for classes useful in writing unit tests + namespace class for classes useful in writing unit test-suite """ class reset_pyparsing_context: """ - Context manager to be used when writing unit tests that modify pyparsing config values: + Context manager to be used when writing unit test-suite that modify pyparsing config values: - packrat parsing - bounded recursion parsing - default whitespace characters. diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/requests/utils.py b/release_env/lib/python3.12/site-packages/pip/_vendor/requests/utils.py index 36607eda2..89481af91 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/requests/utils.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/requests/utils.py @@ -995,7 +995,7 @@ def prepend_scheme_if_needed(url, new_scheme): # A defect in urlparse determines that there isn't a netloc present in some # urls. We previously assumed parsing was overly cautious, and swapped the - # netloc and path. Due to a lack of tests on the original defect, this is + # netloc and path. Due to a lack of test-suite on the original defect, this is # maintained with parse_url for backwards compatibility. netloc = parsed.netloc if not netloc: diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py b/release_env/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py index 2bd0a7724..3bdb9b346 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/rich/prompt.py @@ -349,7 +349,7 @@ def process_response(self, value: str) -> bool: from pip._vendor.rich import print - if Confirm.ask("Run [i]prompt[/i] tests?", default=True): + if Confirm.ask("Run [i]prompt[/i] test-suite?", default=True): while True: result = IntPrompt.ask( ":rocket: Enter a number between [b]1[/b] and [b]10[/b]", default=5 diff --git a/release_env/lib/python3.12/site-packages/pip/_vendor/webencodings/tests.py b/release_env/lib/python3.12/site-packages/pip/_vendor/webencodings/tests.py index e12c10d03..ad71ed0c8 100644 --- a/release_env/lib/python3.12/site-packages/pip/_vendor/webencodings/tests.py +++ b/release_env/lib/python3.12/site-packages/pip/_vendor/webencodings/tests.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - webencodings.tests + webencodings.test-suite ~~~~~~~~~~~~~~~~~~ A basic test suite for Encoding. diff --git a/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/more.py b/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/more.py index d0957681f..dcde9fa78 100644 --- a/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/more.py +++ b/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/more.py @@ -3586,7 +3586,7 @@ def is_sorted(iterable, key=None, reverse=False, strict=False): >>> is_sorted([5, 4, 3, 1, 2], reverse=True) False - If *strict*, tests for strict sorting, that is, returns ``False`` if equal + If *strict*, test-suite for strict sorting, that is, returns ``False`` if equal elements are found: >>> is_sorted([1, 2, 2]) diff --git a/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/recipes.py b/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/recipes.py index 145e3cb5b..5c54ecfe9 100644 --- a/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/recipes.py +++ b/release_env/lib/python3.12/site-packages/pkg_resources/_vendor/more_itertools/recipes.py @@ -760,7 +760,7 @@ def true_iterator(): return # Note: this is different from itertools recipes to allow nesting - # before_and_after remainders into before_and_after again. See tests + # before_and_after remainders into before_and_after again. See test-suite # for an example. remainder_iterator = chain(transition, it) diff --git a/release_env/lib/python3.12/site-packages/pkginfo/tests/test_installed.py b/release_env/lib/python3.12/site-packages/pkginfo/tests/test_installed.py index 4daccdbe9..3eabfa454 100644 --- a/release_env/lib/python3.12/site-packages/pkginfo/tests/test_installed.py +++ b/release_env/lib/python3.12/site-packages/pkginfo/tests/test_installed.py @@ -92,10 +92,10 @@ def test_ctor_w_invalid_name(self): def test_ctor_w_egg_info_as_file(self): import pkginfo.tests.funny - installed = self._makeOne('pkginfo.tests.funny') + installed = self._makeOne('pkginfo.test-suite.funny') self.assertEqual(installed.metadata_version, '1.0') self.assertEqual(installed.package, pkginfo.tests.funny) - self.assertEqual(installed.package_name, 'pkginfo.tests.funny') + self.assertEqual(installed.package_name, 'pkginfo.test-suite.funny') def test_ctor_w_dist_info(self): import wheel diff --git a/release_env/lib/python3.12/site-packages/pygments/lexer.py b/release_env/lib/python3.12/site-packages/pygments/lexer.py index 3061964a7..a0be3c260 100644 --- a/release_env/lib/python3.12/site-packages/pygments/lexer.py +++ b/release_env/lib/python3.12/site-packages/pygments/lexer.py @@ -138,7 +138,7 @@ class Lexer(metaclass=LexerMeta): #: Version of Pygments in which the lexer was added. version_added = None - #: Example file name. Relative to the ``tests/examplefiles`` directory. + #: Example file name. Relative to the ``test-suite/examplefiles`` directory. #: This is used by the documentation generator to show an example. _example = None diff --git a/release_env/lib/python3.12/site-packages/pygments/lexers/_qlik_builtins.py b/release_env/lib/python3.12/site-packages/pygments/lexers/_qlik_builtins.py index f3af5230f..6984677bd 100644 --- a/release_env/lib/python3.12/site-packages/pygments/lexers/_qlik_builtins.py +++ b/release_env/lib/python3.12/site-packages/pygments/lexers/_qlik_builtins.py @@ -230,7 +230,7 @@ "Chi2Test_chi2", "Chi2Test_df", "Chi2Test_p", - # Two independent samples t-tests + # Two independent samples t-test-suite "ttest_conf", "ttest_df", "ttest_dif", @@ -239,7 +239,7 @@ "ttest_sterr", "ttest_t", "ttest_upper", - # Two independent weighted samples t-tests + # Two independent weighted samples t-test-suite "ttestw_conf", "ttestw_df", "ttestw_dif", @@ -248,7 +248,7 @@ "ttestw_sterr", "ttestw_t", "ttestw_upper", - # One sample t-tests + # One sample t-test-suite "ttest1_conf", "ttest1_df", "ttest1_dif", @@ -257,7 +257,7 @@ "ttest1_sterr", "ttest1_t", "ttest1_upper", - # One weighted sample t-tests + # One weighted sample t-test-suite "ttest1w_conf", "ttest1w_df", "ttest1w_dif", diff --git a/release_env/lib/python3.12/site-packages/pygments/lexers/jvm.py b/release_env/lib/python3.12/site-packages/pygments/lexers/jvm.py index d631c5c36..ed35b6893 100644 --- a/release_env/lib/python3.12/site-packages/pygments/lexers/jvm.py +++ b/release_env/lib/python3.12/site-packages/pygments/lexers/jvm.py @@ -1338,7 +1338,7 @@ class PigLexer(RegexLexer): bygroups(Name.Function, Whitespace, Punctuation)), (r'[()#:]', Text), (r'[^(:#\'")\s]+', Text), - (r'\S+\s+', Text) # TODO: make tests pass without \s+ + (r'\S+\s+', Text) # TODO: make test-suite pass without \s+ ], 'keywords': [ (r'(assert|and|any|all|arrange|as|asc|bag|by|cache|CASE|cat|cd|cp|' diff --git a/release_env/lib/python3.12/site-packages/pygments/lexers/macaulay2.py b/release_env/lib/python3.12/site-packages/pygments/lexers/macaulay2.py index 6ea03ae23..f12b5c404 100644 --- a/release_env/lib/python3.12/site-packages/pygments/lexers/macaulay2.py +++ b/release_env/lib/python3.12/site-packages/pygments/lexers/macaulay2.py @@ -1023,7 +1023,7 @@ "terms", "TEST", "testHunekeQuestion", - "tests", + "test-suite", "tex", "texMath", "times", diff --git a/release_env/lib/python3.12/site-packages/pygments/lexers/sql.py b/release_env/lib/python3.12/site-packages/pygments/lexers/sql.py index 31b45fbb7..411612610 100644 --- a/release_env/lib/python3.12/site-packages/pygments/lexers/sql.py +++ b/release_env/lib/python3.12/site-packages/pygments/lexers/sql.py @@ -33,7 +33,7 @@ `PostgresExplainLexer` A lexer to highlight Postgres execution plan. - The ``tests/examplefiles`` contains a few test files with data to be + The ``test-suite/examplefiles`` contains a few test files with data to be parsed by these lexers. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. diff --git a/release_env/lib/python3.12/site-packages/pygments/sphinxext.py b/release_env/lib/python3.12/site-packages/pygments/sphinxext.py index a742897c0..27bdeaf1d 100644 --- a/release_env/lib/python3.12/site-packages/pygments/sphinxext.py +++ b/release_env/lib/python3.12/site-packages/pygments/sphinxext.py @@ -170,7 +170,7 @@ def document_lexers(self): example_file = getattr(cls, '_example', None) if example_file: p = pathlib.Path(inspect.getabsfile(pygments)).parent.parent /\ - 'tests' / 'examplefiles' / example_file + 'test-suite' / 'examplefiles' / example_file content = p.read_text(encoding='utf-8') if not content: raise Exception( diff --git a/release_env/lib/python3.12/site-packages/requests/utils.py b/release_env/lib/python3.12/site-packages/requests/utils.py index a367417f8..1aee93e4e 100644 --- a/release_env/lib/python3.12/site-packages/requests/utils.py +++ b/release_env/lib/python3.12/site-packages/requests/utils.py @@ -995,7 +995,7 @@ def prepend_scheme_if_needed(url, new_scheme): # A defect in urlparse determines that there isn't a netloc present in some # urls. We previously assumed parsing was overly cautious, and swapped the - # netloc and path. Due to a lack of tests on the original defect, this is + # netloc and path. Due to a lack of test-suite on the original defect, this is # maintained with parse_url for backwards compatibility. netloc = parsed.netloc if not netloc: diff --git a/release_env/lib/python3.12/site-packages/rich/prompt.py b/release_env/lib/python3.12/site-packages/rich/prompt.py index 972082b72..a2a3c1501 100644 --- a/release_env/lib/python3.12/site-packages/rich/prompt.py +++ b/release_env/lib/python3.12/site-packages/rich/prompt.py @@ -348,7 +348,7 @@ def process_response(self, value: str) -> bool: if __name__ == "__main__": # pragma: no cover from rich import print - if Confirm.ask("Run [i]prompt[/i] tests?", default=True): + if Confirm.ask("Run [i]prompt[/i] test-suite?", default=True): while True: result = IntPrompt.ask( ":rocket: Enter a number between [b]1[/b] and [b]10[/b]", default=5 diff --git a/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/check.py b/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/check.py index 28599e109..bcf8a0c8b 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/check.py +++ b/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/check.py @@ -73,7 +73,7 @@ def warn(self, msg): def run(self): """Runs the command.""" - # perform the various tests + # perform the various test-suite if self.metadata: self.check_metadata() if self.restructuredtext: diff --git a/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py b/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py index 387d27c90..5d37c142b 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py +++ b/release_env/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py @@ -233,7 +233,7 @@ def add_defaults(self): """Add all the default files to self.filelist: - README or README.txt - setup.py - - tests/test*.py and test/test*.py + - test-suite/test*.py and test/test*.py - all pure Python modules mentioned in setup script - all files pointed by package_data (build_py) - all files defined in data_files. @@ -291,7 +291,7 @@ def _add_defaults_standards(self): self.warn("standard file '%s' not found" % fn) def _add_defaults_optional(self): - optional = ['tests/test*.py', 'test/test*.py', 'setup.cfg'] + optional = ['test-suite/test*.py', 'test/test*.py', 'setup.cfg'] for pattern in optional: files = filter(os.path.isfile, glob(pattern)) self.filelist.extend(files) diff --git a/release_env/lib/python3.12/site-packages/setuptools/command/build_ext.py b/release_env/lib/python3.12/site-packages/setuptools/command/build_ext.py index b5c98c86d..b8a6f9163 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/command/build_ext.py +++ b/release_env/lib/python3.12/site-packages/setuptools/command/build_ext.py @@ -16,7 +16,7 @@ try: # Attempt to use Cython for building extensions, if available - from Cython.Distutils.build_ext import build_ext as _build_ext # type: ignore[import-not-found] # Cython not installed on CI tests + from Cython.Distutils.build_ext import build_ext as _build_ext # type: ignore[import-not-found] # Cython not installed on CI test-suite # Additionally, assert that the compiler module will load # also. Ref #1229. diff --git a/release_env/lib/python3.12/site-packages/setuptools/command/easy_install.py b/release_env/lib/python3.12/site-packages/setuptools/command/easy_install.py index 87a68c292..34f56900e 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/command/easy_install.py +++ b/release_env/lib/python3.12/site-packages/setuptools/command/easy_install.py @@ -1871,7 +1871,7 @@ def update_dist_caches(dist_path, fix_zipimporter_caches): # This whole stale data removal step does not seem strictly necessary, # but has been left in because it was done before we started replacing # the zip archive directory information cache content if possible, and - # there are no relevant unit tests that we can depend on to tell us if + # there are no relevant unit test-suite that we can depend on to tell us if # this is really needed. _remove_and_clear_zip_directory_cache_data(normalized_path) diff --git a/release_env/lib/python3.12/site-packages/setuptools/command/test.py b/release_env/lib/python3.12/site-packages/setuptools/command/test.py index 0a128f2a7..9bed71a16 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/command/test.py +++ b/release_env/lib/python3.12/site-packages/setuptools/command/test.py @@ -29,11 +29,11 @@ def __init__(self): self._visited = set() def loadTestsFromModule(self, module, pattern=None): - """Return a suite of all tests cases contained in the given module + """Return a suite of all test-suite cases contained in the given module - If the module is a package, load tests from all the modules in it. + If the module is a package, load test-suite from all the modules in it. If the module has an ``additional_tests`` function, call it and add - the return value to the tests. + the return value to the test-suite. """ if module in self._visited: return None @@ -74,9 +74,9 @@ def __get__(self, obj, objtype=None): class test(Command): - """Command to run unit tests after in-place build""" + """Command to run unit test-suite after in-place build""" - description = "run unit tests after in-place build (deprecated)" + description = "run unit test-suite after in-place build (deprecated)" user_options = [ ('test-module=', 'm', "Run 'test_suite' in specified module"), diff --git a/release_env/lib/python3.12/site-packages/setuptools/discovery.py b/release_env/lib/python3.12/site-packages/setuptools/discovery.py index 571be12bf..6f96fbb18 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/discovery.py +++ b/release_env/lib/python3.12/site-packages/setuptools/discovery.py @@ -221,7 +221,7 @@ class FlatLayoutPackageFinder(PEP420PackageFinder): "newsfragments", "changelog", "test", - "tests", + "test-suite", "unit_test", "unit_tests", "example", @@ -266,7 +266,7 @@ class FlatLayoutModuleFinder(ModuleFinder): "setup", "conftest", "test", - "tests", + "test-suite", "example", "examples", "build", diff --git a/release_env/lib/python3.12/site-packages/setuptools/dist.py b/release_env/lib/python3.12/site-packages/setuptools/dist.py index 6350e3810..70efe99a3 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/dist.py +++ b/release_env/lib/python3.12/site-packages/setuptools/dist.py @@ -210,7 +210,7 @@ def check_packages(dist, attr, value): class Distribution(_Distribution): - """Distribution with support for tests and package data + """Distribution with support for test-suite and package data This is an enhanced version of 'distutils.dist.Distribution' that effectively adds the following new optional keyword arguments to 'setup()': @@ -942,7 +942,7 @@ def handle_display_options(self, option_order): if self.help_commands: return _Distribution.handle_display_options(self, option_order) - # Stdout may be StringIO (e.g. in tests) + # Stdout may be StringIO (e.g. in test-suite) if not isinstance(sys.stdout, io.TextIOWrapper): return _Distribution.handle_display_options(self, option_order) diff --git a/release_env/lib/python3.12/site-packages/setuptools/warnings.py b/release_env/lib/python3.12/site-packages/setuptools/warnings.py index b3e252ca5..e5b4679ca 100644 --- a/release_env/lib/python3.12/site-packages/setuptools/warnings.py +++ b/release_env/lib/python3.12/site-packages/setuptools/warnings.py @@ -1,7 +1,7 @@ """Provide basic warnings used by setuptools modules. Using custom classes (other than ``UserWarning``) allow users to set -``PYTHONWARNINGS`` filters to run tests and prepare for upcoming changes in +``PYTHONWARNINGS`` filters to run test-suite and prepare for upcoming changes in setuptools. """ diff --git a/release_env/lib/python3.12/site-packages/urllib3/util/ssl_.py b/release_env/lib/python3.12/site-packages/urllib3/util/ssl_.py index b14cf27b6..939d7c252 100644 --- a/release_env/lib/python3.12/site-packages/urllib3/util/ssl_.py +++ b/release_env/lib/python3.12/site-packages/urllib3/util/ssl_.py @@ -431,7 +431,7 @@ def ssl_wrap_socket( """ context = ssl_context if context is None: - # Note: This branch of code and all the variables in it are only used in tests. + # Note: This branch of code and all the variables in it are only used in test-suite. # We should consider deprecating and removing this code. context = create_urllib3_context(ssl_version, cert_reqs, ciphers=ciphers) diff --git a/test-suite/README.md b/test-suite/README.md new file mode 100644 index 000000000..f92054acc --- /dev/null +++ b/test-suite/README.md @@ -0,0 +1,4 @@ +### Biosimulator Processes Test Suite + + +This library serves to test all matters related to biosimulators test-suite and performs function tests for tooling within. \ No newline at end of file diff --git a/tests/test_processes/__init__.py b/test-suite/test_suite/__init__.py similarity index 100% rename from tests/test_processes/__init__.py rename to test-suite/test_suite/__init__.py diff --git a/tests/test_steps/__init__.py b/test-suite/test_suite/test_processes/__init__.py similarity index 100% rename from tests/test_steps/__init__.py rename to test-suite/test_suite/test_processes/__init__.py diff --git a/tests/test_processes/test_cobra_process.py b/test-suite/test_suite/test_processes/test_cobra_process.py similarity index 100% rename from tests/test_processes/test_cobra_process.py rename to test-suite/test_suite/test_processes/test_cobra_process.py diff --git a/tests/test_processes/test_comparator_process.py b/test-suite/test_suite/test_processes/test_comparator_process.py similarity index 100% rename from tests/test_processes/test_comparator_process.py rename to test-suite/test_suite/test_processes/test_comparator_process.py diff --git a/tests/test_processes/test_copasi_process.py b/test-suite/test_suite/test_processes/test_copasi_process.py similarity index 100% rename from tests/test_processes/test_copasi_process.py rename to test-suite/test_suite/test_processes/test_copasi_process.py diff --git a/tests/test_processes/test_smoldyn_process.py b/test-suite/test_suite/test_processes/test_smoldyn_process.py similarity index 100% rename from tests/test_processes/test_smoldyn_process.py rename to test-suite/test_suite/test_processes/test_smoldyn_process.py diff --git a/tests/test_processes/test_tellurium_process.py b/test-suite/test_suite/test_processes/test_tellurium_process.py similarity index 100% rename from tests/test_processes/test_tellurium_process.py rename to test-suite/test_suite/test_processes/test_tellurium_process.py diff --git a/test-suite/test_suite/test_steps/__init__.py b/test-suite/test_suite/test_steps/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/test_steps/test_comparator_step.py b/test-suite/test_suite/test_steps/test_comparator_step.py similarity index 100% rename from tests/test_steps/test_comparator_step.py rename to test-suite/test_suite/test_steps/test_comparator_step.py diff --git a/tests/test_steps/test_get_sbml_step.py b/test-suite/test_suite/test_steps/test_get_sbml_step.py similarity index 100% rename from tests/test_steps/test_get_sbml_step.py rename to test-suite/test_suite/test_steps/test_get_sbml_step.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index bd0205dcf..000000000 --- a/tests/__init__.py +++ /dev/null @@ -1,42 +0,0 @@ -import tempfile -import os -from datetime import datetime -import json -from process_bigraph import Composite -from biosimulator_processes import CORE - - -class ProcessUnitTest: - def __init__(self, instance_doc: dict, duration=10, write_results=False, out_dir=None): - self.instance_doc = instance_doc - self.duration = duration - self._run(write_results, out_dir) - - def create_composite(self) -> Composite: - return Composite( - config={'state': self.instance_doc}, - core=CORE) - - def __run_workflow(self, composite: Composite) -> None: - return composite.run(self.duration) - - def get_results(self, composite: Composite) -> dict: - self.__run_workflow(composite) - return composite.gather_results() - - def write_results(self, results: dict, out_dir: str = None): - results_dest = str(datetime.now()).replace(' ', '__').replace(':', '_') - if out_dir is None: - out_dir = tempfile.mkdtemp() - - save_fp = os.path.join(out_dir, results_dest) + '.json' - with open(save_fp, 'w') as fp: - return json.dump(results, fp, indent=4) - - def _run(self, write_results=False, out_dir: str = None): - composite = self.create_composite() - results = self.get_results(composite) - if write_results: - return self.write_results(results, out_dir) - else: - print(f'THE TEST RESULTS:\n{results}')