Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-sugar for
openSUSE:Factory checked in at 2025-09-15 19:52:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-sugar (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-sugar.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-sugar"
Mon Sep 15 19:52:09 2025 rev:12 rq:1304656 version:1.1.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-sugar/python-pytest-sugar.changes
2024-02-02 15:47:42.249609027 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-sugar.new.1977/python-pytest-sugar.changes
2025-09-15 19:56:03.343036404 +0200
@@ -1,0 +2,14 @@
+Sun Sep 14 18:27:57 UTC 2025 - Dirk Müller <[email protected]>
+
+- update to 1.1.1:
+ * Adjust signature of SugarTerminalReporter to avoid conflicts
+ with other pytest plugins
+- update to 1.1.0:
+ * Add Playwright trace file detection and display support for
+ failed tests
+ * `--sugar-trace-dir`: Configure the directory name for
+ Playwright trace files (default: test-results)
+ * `--sugar-no-trace`: Disable Playwright trace file detection
+ and display
+
+-------------------------------------------------------------------
Old:
----
pytest-sugar-1.0.0.tar.gz
New:
----
pytest-sugar-1.1.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-sugar.spec ++++++
--- /var/tmp/diff_new_pack.EDf17n/_old 2025-09-15 19:56:04.595088975 +0200
+++ /var/tmp/diff_new_pack.EDf17n/_new 2025-09-15 19:56:04.599089143 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-sugar
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-pytest-sugar
-Version: 1.0.0
+Version: 1.1.1
Release: 0
Summary: Pretty printer for pytest progress
License: BSD-3-Clause
++++++ pytest-sugar-1.0.0.tar.gz -> pytest-sugar-1.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/CHANGES.rst
new/pytest-sugar-1.1.1/CHANGES.rst
--- old/pytest-sugar-1.0.0/CHANGES.rst 2024-02-01 19:30:16.000000000 +0100
+++ new/pytest-sugar-1.1.1/CHANGES.rst 2025-08-23 14:19:21.000000000 +0200
@@ -1,6 +1,27 @@
Changelog
---------
+1.1.1 - 2025-08-23
+^^^^^^^^^^^^^^^^^^
+
+Adjust signature of SugarTerminalReporter to avoid conflicts with other pytest
plugins
+
+Contributed by [Daniil](https://github.com/TolstochenkoDaniil) via [PR
#297](https://github.com/Teemu/pytest-sugar/pull/297/)
+
+
+1.1.0 - 2025-08-16
+^^^^^^^^^^^^^^^^^^
+
+Add Playwright trace file detection and display support for failed tests. This
enhancement automatically detects and displays Playwright trace.zip files with
viewing commands when tests fail, making debugging easier for Playwright users.
+
+
+New command-line options:
+- `--sugar-trace-dir`: Configure the directory name for Playwright trace files
(default: test-results)
+- `--sugar-no-trace`: Disable Playwright trace file detection and display
+
+Contributed by [kie](https://github.com/kiebak3r) via [PR
#296](https://github.com/Teemu/pytest-sugar/pull/296/)
+
+
1.0.0 - 2024-02-01
^^^^^^^^^^^^^^^^^^
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/LICENSE
new/pytest-sugar-1.1.1/LICENSE
--- old/pytest-sugar-1.0.0/LICENSE 2024-02-01 19:30:02.000000000 +0100
+++ new/pytest-sugar-1.1.1/LICENSE 2025-08-23 14:19:01.000000000 +0200
@@ -1,28 +1,29 @@
+BSD 3-Clause License
+
Copyright (c) 2013, Teemu <orkkiolento at gmail dot com>
Copyright (c) 2013, Janne Vanhala
-All rights reserved.
-
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* The names of the contributors may not be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/PKG-INFO
new/pytest-sugar-1.1.1/PKG-INFO
--- old/pytest-sugar-1.0.0/PKG-INFO 2024-02-01 19:30:16.833058000 +0100
+++ new/pytest-sugar-1.1.1/PKG-INFO 2025-08-23 14:19:22.421687000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-sugar
-Version: 1.0.0
+Version: 1.1.1
Summary: pytest-sugar is a plugin for pytest that changes the default look and
feel of pytest (e.g. progressbar, show tests that fail instantly).
Home-page: https://github.com/Teemu/pytest-sugar
Author: Teemu, Janne Vanhala and others
@@ -23,6 +23,7 @@
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: PyPy
Description-Content-Type: text/markdown
Provides-Extra: dev
@@ -57,6 +58,32 @@
pytest -p no:sugar
+## Usage
+pytest-sugar provides several command-line options to customize its output and
behavior. These options enhance test reporting and Playwright trace integration:
+
+
+Show detailed test failures instead of one-line tracebacks.
+Use this if you want to see the full failure information instantly.
+
+ --old-summary
+
+Force pytest-sugar output even if pytest doesn’t detect a real terminal.
+Useful when running tests in CI systems or other non-interactive environments.
+
+ --force-sugar
+
+
+Specify the directory where Playwright trace files are stored.
+Defaults to Playwright default: "test-results"
+
+ --sugar-trace-dir <directory>
+
+Disable Playwright trace file detection and output display.
+Use this if you want to turn off trace collection or display entirely.
+
+ --sugar-no-trace
+
+
## How to contribute 👷♂️
[](https://github.com/codespaces/new?hide_repo_select=true&ref=master&repo=10950375)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/README.md
new/pytest-sugar-1.1.1/README.md
--- old/pytest-sugar-1.0.0/README.md 2024-02-01 19:30:02.000000000 +0100
+++ new/pytest-sugar-1.1.1/README.md 2025-08-23 14:19:01.000000000 +0200
@@ -27,6 +27,32 @@
pytest -p no:sugar
+## Usage
+pytest-sugar provides several command-line options to customize its output and
behavior. These options enhance test reporting and Playwright trace integration:
+
+
+Show detailed test failures instead of one-line tracebacks.
+Use this if you want to see the full failure information instantly.
+
+ --old-summary
+
+Force pytest-sugar output even if pytest doesn’t detect a real terminal.
+Useful when running tests in CI systems or other non-interactive environments.
+
+ --force-sugar
+
+
+Specify the directory where Playwright trace files are stored.
+Defaults to Playwright default: "test-results"
+
+ --sugar-trace-dir <directory>
+
+Disable Playwright trace file detection and output display.
+Use this if you want to turn off trace collection or display entirely.
+
+ --sugar-no-trace
+
+
## How to contribute 👷♂️
[](https://github.com/codespaces/new?hide_repo_select=true&ref=master&repo=10950375)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/pyproject.toml
new/pytest-sugar-1.1.1/pyproject.toml
--- old/pytest-sugar-1.0.0/pyproject.toml 2024-02-01 19:30:15.000000000
+0100
+++ new/pytest-sugar-1.1.1/pyproject.toml 2025-08-23 14:19:21.000000000
+0200
@@ -1,9 +1,9 @@
[tool.poetry]
name = "pytest-sugar"
-version = "1.0.0"
+version = "1.1.1"
description = "Pytest plugin that adds a progress bar and other visual
enhancements"
authors = ["Teemu <[email protected]>", "Janne Vanhala
<[email protected]>"]
-license = "BSD 3-Clause"
+license = "BSD-3-Clause"
readme = "README.md"
keywords = ["testing", "pytest", "plugin"]
classifiers = [
@@ -25,7 +25,6 @@
python = ">=3.8.1,<4.0"
pytest = ">=6.2.0"
termcolor = ">=2.1.0"
-packaging = ">=21.3"
[tool.poetry.dev-dependencies]
black = "^24.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/pytest_sugar.egg-info/PKG-INFO
new/pytest-sugar-1.1.1/pytest_sugar.egg-info/PKG-INFO
--- old/pytest-sugar-1.0.0/pytest_sugar.egg-info/PKG-INFO 2024-02-01
19:30:16.000000000 +0100
+++ new/pytest-sugar-1.1.1/pytest_sugar.egg-info/PKG-INFO 2025-08-23
14:19:22.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pytest-sugar
-Version: 1.0.0
+Version: 1.1.1
Summary: pytest-sugar is a plugin for pytest that changes the default look and
feel of pytest (e.g. progressbar, show tests that fail instantly).
Home-page: https://github.com/Teemu/pytest-sugar
Author: Teemu, Janne Vanhala and others
@@ -23,6 +23,7 @@
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: PyPy
Description-Content-Type: text/markdown
Provides-Extra: dev
@@ -57,6 +58,32 @@
pytest -p no:sugar
+## Usage
+pytest-sugar provides several command-line options to customize its output and
behavior. These options enhance test reporting and Playwright trace integration:
+
+
+Show detailed test failures instead of one-line tracebacks.
+Use this if you want to see the full failure information instantly.
+
+ --old-summary
+
+Force pytest-sugar output even if pytest doesn’t detect a real terminal.
+Useful when running tests in CI systems or other non-interactive environments.
+
+ --force-sugar
+
+
+Specify the directory where Playwright trace files are stored.
+Defaults to Playwright default: "test-results"
+
+ --sugar-trace-dir <directory>
+
+Disable Playwright trace file detection and output display.
+Use this if you want to turn off trace collection or display entirely.
+
+ --sugar-no-trace
+
+
## How to contribute 👷♂️
[](https://github.com/codespaces/new?hide_repo_select=true&ref=master&repo=10950375)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-sugar-1.0.0/pytest_sugar.egg-info/requires.txt
new/pytest-sugar-1.1.1/pytest_sugar.egg-info/requires.txt
--- old/pytest-sugar-1.0.0/pytest_sugar.egg-info/requires.txt 2024-02-01
19:30:16.000000000 +0100
+++ new/pytest-sugar-1.1.1/pytest_sugar.egg-info/requires.txt 2025-08-23
14:19:22.000000000 +0200
@@ -1,6 +1,5 @@
pytest>=6.2.0
termcolor>=2.1.0
-packaging>=21.3
[dev]
black
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/pytest_sugar.py
new/pytest-sugar-1.1.1/pytest_sugar.py
--- old/pytest-sugar-1.0.0/pytest_sugar.py 2024-02-01 19:30:15.000000000
+0100
+++ new/pytest-sugar-1.1.1/pytest_sugar.py 2025-08-23 14:19:21.000000000
+0200
@@ -16,9 +16,10 @@
import sys
import time
from configparser import ConfigParser # type: ignore
-from typing import Any, Dict, Generator, List, Optional, Sequence, Tuple, Union
+from typing import Any, Dict, Generator, List, Optional, Sequence, TextIO,
Tuple, Union
import pytest
+from _pytest.config import Config
from _pytest.config.argparsing import Parser
from _pytest.main import Session
from _pytest.nodes import Item
@@ -26,7 +27,7 @@
from _pytest.terminal import TerminalReporter, format_session_duration
from termcolor import colored
-__version__ = "1.0.0"
+__version__ = "1.1.1"
LEN_RIGHT_MARGIN = 0
LEN_PROGRESS_PERCENTAGE = 5
@@ -133,6 +134,20 @@
default=False,
help=("Force pytest-sugar output even when not in real terminal"),
)
+ group._addoption(
+ "--sugar-trace-dir",
+ action="store",
+ dest="sugar_trace_dir",
+ default="test-results",
+ help=("Directory name for Playwright trace files (default:
test-results)"),
+ )
+ group._addoption(
+ "--sugar-no-trace",
+ action="store_true",
+ dest="sugar_no_trace",
+ default=False,
+ help=("Disable Playwright trace file detection and display"),
+ )
def pytest_sessionstart(session: Session) -> None:
@@ -183,20 +198,16 @@
if config.pluginmanager.hasplugin("xdist"):
try:
- import xdist # type: ignore
+ import xdist # type: ignore # noqa: F401
except ImportError:
pass
else:
- from packaging import version
-
- xdist_version = version.Version(xdist.__version__)
- if xdist_version >= version.Version("1.14"):
- config.pluginmanager.register(DeferredXdistPlugin())
+ config.pluginmanager.register(DeferredXdistPlugin())
if IS_SUGAR_ENABLED and not getattr(config, "slaveinput", None):
# Get the standard terminal reporter plugin and replace it with our
standard_reporter = config.pluginmanager.getplugin("terminalreporter")
- sugar_reporter = SugarTerminalReporter(standard_reporter)
+ sugar_reporter = SugarTerminalReporter(standard_reporter.config)
config.pluginmanager.unregister(standard_reporter)
config.pluginmanager.register(sugar_reporter, "terminalreporter")
@@ -235,9 +246,9 @@
return report.outcome, letter, report.outcome.upper()
-class SugarTerminalReporter(TerminalReporter): # type: ignore
- def __init__(self, reporter) -> None:
- TerminalReporter.__init__(self, reporter.config)
+class SugarTerminalReporter(TerminalReporter):
+ def __init__(self, config: Config, file: Union[TextIO, None] = None) ->
None:
+ TerminalReporter.__init__(self, config, file)
self.paths_left = []
self.tests_count = 0
self.tests_taken = 0
@@ -528,8 +539,8 @@
def summary_stats(self) -> None:
session_duration = time.time() - self._sessionstarttime
-
print(f"\nResults ({format_session_duration(session_duration)}):")
+
if self.count("passed") > 0:
self.write_line(
colored(" % 5d passed" % self.count("passed"), THEME.success)
@@ -547,9 +558,10 @@
THEME.fail,
)
)
- for report in self.stats["failed"]:
+ for i, report in enumerate(self.stats["failed"]):
if report.when != "call":
continue
+
if self.config.option.tb_summary:
crashline = self._get_decoded_crashline(report)
else:
@@ -563,6 +575,11 @@
lineno if lineno else "?",
colored(report.location[2], THEME.fail),
)
+
+ # Add trace.zip path if it exists
+ trace_path = self._find_playwright_trace(report)
+ if trace_path:
+ crashline += f"\n - 🎭 {trace_path}"
self.write_line(f" - {crashline}")
if self.count("failed", when=("setup", "teardown")) > 0:
@@ -596,6 +613,77 @@
colored(" % 5d deselected" % self.count("deselected"),
THEME.warning)
)
+ def _find_playwright_trace(self, report: TestReport) -> Optional[str]:
+ """
+ Finds the Playwright trace file associated with a specific test report.
+
+ Identifies the location of the trace file by using the test report's
node ID
+ and configuration options.
+ It allows users to locate and optionally view the Playwright trace
+ for failed tests.
+ If Playwright trace finding is specifically disabled, or the trace file
+ does not exist for the given test, no output is returned.
+
+ Parameters:
+ report (TestReport):
+ The test report containing details about the test execution, including
+ the node ID.
+
+ Returns:
+ Optional[str]: A string containing command to view the Playwright trace
+ or
+ None if trace is not enabled, the file does not exist, or an exception
occurs.
+ """
+ # Check if trace finding is disabled
+ if self.config.option.sugar_no_trace:
+ return None
+
+ try:
+ # Extract test information from the report
+ nodeid = report.nodeid
+
+ # Handle Node ID conversion to trace name format
+ trace_dir_name = self._convert_node_to_trace_name(nodeid)
+
+ # Construct the expected trace directory path
+ cwd = os.getcwd()
+ trace_dir_name_from_config = self.config.option.sugar_trace_dir
+ test_results_dir = os.path.join(cwd, trace_dir_name_from_config)
+ trace_dir = os.path.join(test_results_dir, trace_dir_name)
+ trace_file = os.path.join(trace_dir, "trace.zip")
+
+ # Check if the trace file exists
+ if os.path.exists(trace_file):
+ # Provide the relative path and a command to view the trace
+ trace_file_relative = os.path.relpath(trace_file, cwd).replace(
+ "\\", "/"
+ )
+
+ # Create a command to open the trace with Playwright for Python
+ view_command = f"playwright show-trace {trace_file_relative}"
+
+ # Display unzip command
+ command_display = colored(view_command, THEME.warning)
+ return command_display
+ return None
+
+ except (OSError, AttributeError):
+ return None
+
+ @staticmethod
+ def _convert_node_to_trace_name(nodeid: str) -> str:
+ # Convert the nodeid to the expected trace directory name
+ trace_dir_name = (
+ nodeid.replace("/", "-")
+ .replace("\\", "-")
+ .replace("::", "-")
+ .replace("[", "-")
+ .replace("]", "")
+ .replace("_", "-")
+ .replace(".", "-")
+ )
+ return trace_dir_name.lower()
+
def _get_decoded_crashline(self, report: CollectReport) -> str:
crashline = self._getcrashline(report)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/setup.py
new/pytest-sugar-1.1.1/setup.py
--- old/pytest-sugar-1.0.0/setup.py 2024-02-01 19:30:02.000000000 +0100
+++ new/pytest-sugar-1.1.1/setup.py 2025-08-23 14:19:01.000000000 +0200
@@ -41,7 +41,7 @@
zip_safe=False,
include_package_data=True,
platforms="any",
- install_requires=["pytest>=6.2.0", "termcolor>=2.1.0", "packaging>=21.3"],
+ install_requires=["pytest>=6.2.0", "termcolor>=2.1.0"],
extras_require={
"dev": [
"black",
@@ -65,6 +65,7 @@
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: PyPy",
],
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/test_sugar.py
new/pytest-sugar-1.1.1/test_sugar.py
--- old/pytest-sugar-1.0.0/test_sugar.py 2024-02-01 19:30:02.000000000
+0100
+++ new/pytest-sugar-1.1.1/test_sugar.py 2025-08-23 14:19:01.000000000
+0200
@@ -1,8 +1,9 @@
+import io
import re
import pytest
-from pytest_sugar import strip_colors
+from pytest_sugar import SugarTerminalReporter, strip_colors
pytest_plugins = "pytester"
@@ -52,6 +53,16 @@
class TestTerminalReporter:
+ def test_sugar_terminal_reporter_init_signature(self, pytestconfig):
+ terminal_reporter =
pytestconfig.pluginmanager.getplugin("terminalreporter")
+ sugar_reporter = SugarTerminalReporter(terminal_reporter.config)
+ assert sugar_reporter.config is terminal_reporter.config
+
+ file_obj = io.StringIO()
+ sugar_reporter = SugarTerminalReporter(terminal_reporter.config,
file=file_obj)
+ assert sugar_reporter.config is terminal_reporter.config
+ assert sugar_reporter._tw._file is file_obj
+
def test_new_summary(self, testdir):
testdir.makepyfile(
"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-sugar-1.0.0/tox.ini
new/pytest-sugar-1.1.1/tox.ini
--- old/pytest-sugar-1.0.0/tox.ini 2024-02-01 19:30:02.000000000 +0100
+++ new/pytest-sugar-1.1.1/tox.ini 2025-08-23 14:19:01.000000000 +0200
@@ -1,6 +1,6 @@
[tox]
minversion = 3.14.0
-envlist = py{38,312,py}-pytest_latest-supported-xdist
+envlist = py{38,313,py}-pytest_latest-supported-xdist
qa
requires = virtualenv>=20.0.31