approval-utilities 14.7.1__tar.gz → 15.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of approval-utilities might be problematic. Click here for more details.
- {approval_utilities-14.7.1/approval_utilities.egg-info → approval_utilities-15.1.0}/PKG-INFO +1 -1
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/README.md +4 -3
- {approval_utilities-14.7.1 → approval_utilities-15.1.0/approval_utilities.egg-info}/PKG-INFO +1 -1
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities.egg-info/SOURCES.txt +1 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/requirements.prod.extras.txt +0 -1
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_options.py +0 -1
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_simple_logger.py +4 -1
- approval_utilities-15.1.0/tests/test_workflow_matrix.py +40 -0
- approval_utilities-15.1.0/version.py +1 -0
- approval_utilities-14.7.1/version.py +0 -1
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/LICENSE +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/MANIFEST.in +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/__init__.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/approvaltests/__init__.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/approvaltests/core/__init__.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/approvaltests/core/executable_command.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/approvaltests/core/verifiable.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/approvaltests/core/verify_parameters.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/list_utils.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/py.typed +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/__init__.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/clipboard_utilities.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/deprecated.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/exceptions/__init__.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/exceptions/exception_collector.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/exceptions/exception_utils.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/exceptions/multiple_exceptions.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/logger/__init__.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/logger/logging_instance.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/logger/simple_logger.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/map_reduce.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/markdown_table.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/multiline_string_utils.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/os_utilities.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/persistence/__init__.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/persistence/loader.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/persistence/saver.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/stack_frame_utilities.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/string_wrapper.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/time_utilities.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/wrapper.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utils.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities.egg-info/dependency_links.txt +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities.egg-info/top_level.txt +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/requirements.prod.required.txt +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/requirements.prod.txt +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/setup.cfg +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/setup.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/setup_utils.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_approvaltests_temp_dir.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_asserts.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_build.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_combinations.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_compare_file_lists.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_custom_printers.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_example_numpy.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_exception_utils.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_fileapprover.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_find_stale_approved_files.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_inline_approvals.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_list.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_multiline_string_utils.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_namer.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_pairwise_combinations.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_parse_inputs.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_python_patterns.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_scenarios.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_split_code.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_verify.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_verify_all.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_verify_argument_parser.py +0 -0
- {approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_writer.py +0 -0
|
@@ -270,7 +270,9 @@ If there is documentation you wish existed, please add a `page request` to [this
|
|
|
270
270
|
|
|
271
271
|
### Dependencies
|
|
272
272
|
|
|
273
|
-
ApprovalTests
|
|
273
|
+
ApprovalTests is tested on the following Python versions: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13.<!-- singleLineInclude: tests/approved_files/test_workflow_matrix.test_workflow_matrix_python_versions.approved.txt -->
|
|
274
|
+
|
|
275
|
+
ApprovalTests requires the following dependencies:
|
|
274
276
|
|
|
275
277
|
#### Required dependencies
|
|
276
278
|
|
|
@@ -298,11 +300,10 @@ If you want the bare minimum you can use the pypi project
|
|
|
298
300
|
pyperclip>=1.5.29 # For Clipboard Reporter
|
|
299
301
|
beautifulsoup4>=4.4.0 # For verify_html
|
|
300
302
|
allpairspy>=2.1.0 # For PairwiseCombinations
|
|
301
|
-
mrjob>=0.7.4 # For MrJob
|
|
302
303
|
testfixtures >= 7.1.0 # For verify_logging
|
|
303
304
|
mock >= 5.1.0 # For verify_logging
|
|
304
305
|
```
|
|
305
|
-
<sup><a href='/requirements.prod.extras.txt#L1-
|
|
306
|
+
<sup><a href='/requirements.prod.extras.txt#L1-L5' title='Snippet source file'>snippet source</a> | <a href='#snippet-requirements.prod.extras.txt' title='Start of snippet'>anchor</a></sup>
|
|
306
307
|
<!-- endSnippet -->
|
|
307
308
|
|
|
308
309
|
## For developers
|
|
@@ -11,7 +11,6 @@ from approvaltests import (
|
|
|
11
11
|
verify_all,
|
|
12
12
|
)
|
|
13
13
|
from approvaltests.core.options import Options
|
|
14
|
-
from approvaltests.integrations.mrjob import mrjob_approvals
|
|
15
14
|
from approvaltests.reporters import MultiReporter, ReportByCreatingDiffFile
|
|
16
15
|
from approvaltests.reporters.report_with_beyond_compare import ReportWithPycharm
|
|
17
16
|
from approvaltests.utilities import command_line_approvals
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import datetime
|
|
2
|
+
import re
|
|
2
3
|
import threading
|
|
3
4
|
from contextlib import contextmanager
|
|
4
5
|
from typing import Callable, Generator
|
|
@@ -17,7 +18,9 @@ from approvaltests.utilities.logger.simple_logger_approvals import verify_simple
|
|
|
17
18
|
|
|
18
19
|
def test_warnings() -> None:
|
|
19
20
|
def scrubber(text: str) -> str:
|
|
20
|
-
return
|
|
21
|
+
return re.sub(
|
|
22
|
+
re.escape(__file__), "test_simple_logger.py", text, flags=re.IGNORECASE
|
|
23
|
+
)
|
|
21
24
|
|
|
22
25
|
output = SimpleLogger.log_to_string()
|
|
23
26
|
SimpleLogger._wrapper.get().log_stack_traces = True
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
import yaml
|
|
4
|
+
|
|
5
|
+
from approvaltests import verify
|
|
6
|
+
|
|
7
|
+
SCRIPT_DIR = Path(__file__).parent.resolve()
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def test_workflow_matrix_python_versions() -> None:
|
|
11
|
+
test_workflow = yaml.safe_load(
|
|
12
|
+
(SCRIPT_DIR.parent / ".github/workflows/test.yml").read_text()
|
|
13
|
+
)
|
|
14
|
+
python_versions = test_workflow["jobs"]["build"]["strategy"]["matrix"][
|
|
15
|
+
"python-version"
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
test_min_workflow = yaml.safe_load(
|
|
19
|
+
(SCRIPT_DIR.parent / ".github/workflows/test_min.yml").read_text()
|
|
20
|
+
)
|
|
21
|
+
python_versions_min = test_min_workflow["jobs"]["build"]["strategy"]["matrix"][
|
|
22
|
+
"python-version"
|
|
23
|
+
]
|
|
24
|
+
assert (
|
|
25
|
+
python_versions == python_versions_min
|
|
26
|
+
), "Python version matrix in test.yml and test_min.yml do not match"
|
|
27
|
+
|
|
28
|
+
test_current_release_workflow = yaml.safe_load(
|
|
29
|
+
(SCRIPT_DIR.parent / ".github/workflows/test_current_release.yml").read_text()
|
|
30
|
+
)
|
|
31
|
+
python_versions_current_release = test_current_release_workflow["jobs"]["build"][
|
|
32
|
+
"strategy"
|
|
33
|
+
]["matrix"]["python-version"]
|
|
34
|
+
assert (
|
|
35
|
+
python_versions == python_versions_current_release
|
|
36
|
+
), "Python version matrix in test.yml and test_current_release.yml do not match"
|
|
37
|
+
|
|
38
|
+
verify(
|
|
39
|
+
f"ApprovalTests is tested on the following Python versions: {', '.join(python_versions)}."
|
|
40
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version_number = "v15.1.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version_number = "v14.7.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/approvaltests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/deprecated.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/map_reduce.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/os_utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities/utilities/wrapper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/approval_utilities.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_approvaltests_temp_dir.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_find_stale_approved_files.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_multiline_string_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{approval_utilities-14.7.1 → approval_utilities-15.1.0}/tests/test_verify_argument_parser.py
RENAMED
|
File without changes
|
|
File without changes
|