approval-utilities 14.1.0__py3-none-any.whl → 14.3.0__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.

File without changes
@@ -10,7 +10,7 @@ def use_utc_timezone() -> ContextManager:
10
10
 
11
11
  def __enter__(self):
12
12
  self.timezone = os.environ.get("TZ")
13
- os.environ["TZ"] = "UCT"
13
+ os.environ["TZ"] = "UTC"
14
14
 
15
15
  def __exit__(self, exc_type, exc_val, exc_tb):
16
16
  if self.timezone is None:
@@ -73,8 +73,8 @@ def ensure_file_exists(approved_path: str) -> None:
73
73
 
74
74
  def create_directory_if_needed(received_file: str) -> None:
75
75
  directory = os.path.dirname(received_file)
76
- if directory and not os.path.exists(directory):
77
- os.makedirs(directory)
76
+ if directory:
77
+ os.makedirs(directory, exist_ok=True)
78
78
 
79
79
 
80
80
  def print_grid(width, height, cell_print_func):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: approval_utilities
3
- Version: 14.1.0
3
+ Version: 14.3.0
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,3 @@ Classifier: Topic :: Software Development :: Libraries
21
21
  Classifier: Topic :: Utilities
22
22
  Requires-Python: >=3.8
23
23
  License-File: LICENSE
24
-
@@ -1,6 +1,7 @@
1
1
  approval_utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  approval_utilities/list_utils.py,sha256=7OT3YkysNmq3ZD7shzirQ8S9Yqf2rS7ckcMNKbC1Jf0,551
3
- approval_utilities/utils.py,sha256=PLtz9Lv8kHeiyI3urKo7FTiiynXq_TnAX18agWuT--I,2515
3
+ approval_utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ approval_utilities/utils.py,sha256=bQLRa8iY9orwRzSLj6vR1oHEPi8xWb9XbhWrkrIiudw,2496
4
5
  approval_utilities/approvaltests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
6
  approval_utilities/approvaltests/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
7
  approval_utilities/approvaltests/core/executable_command.py,sha256=LFLD36fAe1ek8YlKdZbj8j3dfJ8InFBnIGS8OzaDxDQ,428
@@ -15,7 +16,7 @@ approval_utilities/utilities/multiline_string_utils.py,sha256=RzjyPZyj9gc6CJy-Fw
15
16
  approval_utilities/utilities/os_utilities.py,sha256=UuvmHM1SXf9O-M7hDBfxrNvHo9C74NDSOY9n22bInPY,150
16
17
  approval_utilities/utilities/stack_frame_utilities.py,sha256=SawZgr7B0WanlDbURB_oHExhRpA8i9uQHduJBGdQm0U,311
17
18
  approval_utilities/utilities/string_wrapper.py,sha256=ceV763aiaE-o1WwQI21jEiFBgHaxsXjB1Y9PzQgwwwg,230
18
- approval_utilities/utilities/time_utilities.py,sha256=qgcJspb224yrAeDd0B8Ob6s5nXqT9c8___dFTpxUeNo,524
19
+ approval_utilities/utilities/time_utilities.py,sha256=D6hye77Qxkyr3TOCUb8FtPMB1fA_GN8MrS6vnwU6jmc,524
19
20
  approval_utilities/utilities/wrapper.py,sha256=JCqu66EpkqTxgwy5GSSOTOoInHl-BAzPuswjxE3I788,563
20
21
  approval_utilities/utilities/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
22
  approval_utilities/utilities/exceptions/exception_collector.py,sha256=mocSfZnIE0SVckDUTf2zJtX2S_tT4zF0hJgoodCLyqU,1080
@@ -27,8 +28,8 @@ approval_utilities/utilities/logger/simple_logger.py,sha256=-MQ1sii7u5VYFO_Zle51
27
28
  approval_utilities/utilities/persistence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
29
  approval_utilities/utilities/persistence/loader.py,sha256=0kLYZRhJh_SX4j6Fxf_9jN64WcgcgMoFTKkUd10S9vM,218
29
30
  approval_utilities/utilities/persistence/saver.py,sha256=_xZxyeNkzAweicun69mgBYSakyeObJxesy7aVAIdWl0,223
30
- approval_utilities-14.1.0.dist-info/LICENSE,sha256=c7p036pSC0mkAbXSFFmoUjoUbzt1GKgz7qXvqFEwv2g,10273
31
- approval_utilities-14.1.0.dist-info/METADATA,sha256=kydD39WMyRBbUqOvd_Fbxidel3WIEQmXarYaGg_mlus,1005
32
- approval_utilities-14.1.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
33
- approval_utilities-14.1.0.dist-info/top_level.txt,sha256=9uDtIZHmdLyDNIBh-jNfEM1dA6lBDmo5ftR376zOiv4,19
34
- approval_utilities-14.1.0.dist-info/RECORD,,
31
+ approval_utilities-14.3.0.dist-info/LICENSE,sha256=c7p036pSC0mkAbXSFFmoUjoUbzt1GKgz7qXvqFEwv2g,10273
32
+ approval_utilities-14.3.0.dist-info/METADATA,sha256=JYLC2bL8ahVPbzxsIBsyXNKjhKwoJRJaTwM39n0AGzw,1004
33
+ approval_utilities-14.3.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
34
+ approval_utilities-14.3.0.dist-info/top_level.txt,sha256=9uDtIZHmdLyDNIBh-jNfEM1dA6lBDmo5ftR376zOiv4,19
35
+ approval_utilities-14.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.2.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5