approval-utilities 14.2.0__py3-none-any.whl → 14.3.1__py3-none-any.whl
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/utils.py +6 -0
- {approval_utilities-14.2.0.dist-info → approval_utilities-14.3.1.dist-info}/METADATA +8 -3
- {approval_utilities-14.2.0.dist-info → approval_utilities-14.3.1.dist-info}/RECORD +6 -6
- {approval_utilities-14.2.0.dist-info → approval_utilities-14.3.1.dist-info}/WHEEL +1 -1
- {approval_utilities-14.2.0.dist-info → approval_utilities-14.3.1.dist-info}/LICENSE +0 -0
- {approval_utilities-14.2.0.dist-info → approval_utilities-14.3.1.dist-info}/top_level.txt +0 -0
approval_utilities/utils.py
CHANGED
|
@@ -3,6 +3,7 @@ import json
|
|
|
3
3
|
import os
|
|
4
4
|
|
|
5
5
|
from copy import deepcopy
|
|
6
|
+
from pathlib import Path
|
|
6
7
|
|
|
7
8
|
from typing import Callable, Dict, TypeVar
|
|
8
9
|
|
|
@@ -92,3 +93,8 @@ _K = TypeVar("_K")
|
|
|
92
93
|
|
|
93
94
|
def filter_values(filter: Callable[[_V], bool], a_dict: Dict[_K, _V]) -> Dict[_K, _V]:
|
|
94
95
|
return {k: v for k, v in a_dict.items() if filter(v)}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def append_to_file(file: Path, text: str):
|
|
99
|
+
with file.open(mode="a") as f:
|
|
100
|
+
f.write(text)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: approval_utilities
|
|
3
|
-
Version: 14.
|
|
3
|
+
Version: 14.3.1
|
|
4
4
|
Summary: Utilities for your production code that work well with approvaltests
|
|
5
5
|
Home-page: https://github.com/approvals/ApprovalTests.Python
|
|
6
6
|
Author: ApprovalTests Contributors
|
|
@@ -21,4 +21,9 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
21
21
|
Classifier: Topic :: Utilities
|
|
22
22
|
Requires-Python: >=3.8
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: requires-python
|
|
29
|
+
Dynamic: summary
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
approval_utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
approval_utilities/list_utils.py,sha256=7OT3YkysNmq3ZD7shzirQ8S9Yqf2rS7ckcMNKbC1Jf0,551
|
|
3
3
|
approval_utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
approval_utilities/utils.py,sha256=
|
|
4
|
+
approval_utilities/utils.py,sha256=dMdQzmtTcWG49zxjio6OxB-d-hB7D_NGrCcMXR8pPUo,2623
|
|
5
5
|
approval_utilities/approvaltests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
approval_utilities/approvaltests/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
approval_utilities/approvaltests/core/executable_command.py,sha256=LFLD36fAe1ek8YlKdZbj8j3dfJ8InFBnIGS8OzaDxDQ,428
|
|
@@ -28,8 +28,8 @@ approval_utilities/utilities/logger/simple_logger.py,sha256=-MQ1sii7u5VYFO_Zle51
|
|
|
28
28
|
approval_utilities/utilities/persistence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
approval_utilities/utilities/persistence/loader.py,sha256=0kLYZRhJh_SX4j6Fxf_9jN64WcgcgMoFTKkUd10S9vM,218
|
|
30
30
|
approval_utilities/utilities/persistence/saver.py,sha256=_xZxyeNkzAweicun69mgBYSakyeObJxesy7aVAIdWl0,223
|
|
31
|
-
approval_utilities-14.
|
|
32
|
-
approval_utilities-14.
|
|
33
|
-
approval_utilities-14.
|
|
34
|
-
approval_utilities-14.
|
|
35
|
-
approval_utilities-14.
|
|
31
|
+
approval_utilities-14.3.1.dist-info/LICENSE,sha256=c7p036pSC0mkAbXSFFmoUjoUbzt1GKgz7qXvqFEwv2g,10273
|
|
32
|
+
approval_utilities-14.3.1.dist-info/METADATA,sha256=UXMOelOQ3kEcH6wPrPF9RETlxqKSLD7DpgNCtAGcDLc,1123
|
|
33
|
+
approval_utilities-14.3.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
34
|
+
approval_utilities-14.3.1.dist-info/top_level.txt,sha256=9uDtIZHmdLyDNIBh-jNfEM1dA6lBDmo5ftR376zOiv4,19
|
|
35
|
+
approval_utilities-14.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|