yta-testing 0.3.2__tar.gz → 0.3.4__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.
- {yta_testing-0.3.2 → yta_testing-0.3.4}/PKG-INFO +4 -4
- {yta_testing-0.3.2 → yta_testing-0.3.4}/pyproject.toml +5 -5
- {yta_testing-0.3.2 → yta_testing-0.3.4}/src/yta_testing/__init__.py +26 -0
- {yta_testing-0.3.2 → yta_testing-0.3.4}/LICENSE +0 -0
- {yta_testing-0.3.2 → yta_testing-0.3.4}/README.md +0 -0
- {yta_testing-0.3.2 → yta_testing-0.3.4}/src/yta_testing/cli/init_log.py +0 -0
- {yta_testing-0.3.2 → yta_testing-0.3.4}/src/yta_testing/cli/isolated_tests_runner.py +0 -0
- {yta_testing-0.3.2 → yta_testing-0.3.4}/src/yta_testing/hooks.py +0 -0
- {yta_testing-0.3.2 → yta_testing-0.3.4}/src/yta_testing/isolated_runner.py +0 -0
- {yta_testing-0.3.2 → yta_testing-0.3.4}/src/yta_testing/memory_usage.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yta-testing
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Youtube Autonomous Testing Module
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: danialcala94
|
|
@@ -13,9 +13,9 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Requires-Dist: psutil (>=
|
|
17
|
-
Requires-Dist: python-dotenv (>=
|
|
18
|
-
Requires-Dist: yta_logger (>=0.0
|
|
16
|
+
Requires-Dist: psutil (>=7.2.2,<9999.0.0)
|
|
17
|
+
Requires-Dist: python-dotenv (>=1.0.1,<9999.0.0)
|
|
18
|
+
Requires-Dist: yta_logger (>=0.2.0,<1.0.0)
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
|
|
21
21
|
# Youtube Autonomous Testing Module
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "yta-testing"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.4"
|
|
4
4
|
description = "Youtube Autonomous Testing Module"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "danialcala94",email = "danielalcalavalera@gmail.com"}
|
|
@@ -11,9 +11,9 @@ requires-python = ">=3.8,<3.14"
|
|
|
11
11
|
[tool.poetry.dependencies]
|
|
12
12
|
# Mandatory
|
|
13
13
|
# I don't like needing this dependency...
|
|
14
|
-
yta_logger = { version = ">=0.0
|
|
15
|
-
python-dotenv = { version = ">=
|
|
16
|
-
psutil = { version = ">=
|
|
14
|
+
yta_logger = { version = ">=0.2.0,<1.0.0", optional = false }
|
|
15
|
+
python-dotenv = { version = ">=1.0.1,<9999.0.0", optional = false }
|
|
16
|
+
psutil = { version = ">=7.2.2,<9999.0.0", optional = false }
|
|
17
17
|
# Optional
|
|
18
18
|
|
|
19
19
|
[tool.poetry]
|
|
@@ -27,7 +27,7 @@ packages = [{include = "yta_testing", from = "src"}]
|
|
|
27
27
|
|
|
28
28
|
[tool.poetry.group.dev.dependencies]
|
|
29
29
|
pytest = { version = "^8.3.5", optional = false }
|
|
30
|
-
pytest-asyncio = { version = ">=0.0
|
|
30
|
+
pytest-asyncio = { version = ">=0.24.0", optional = false }
|
|
31
31
|
|
|
32
32
|
[tool.pytest.ini_options]
|
|
33
33
|
markers = [
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
The Youtube Autonomous Testing Module.
|
|
3
3
|
"""
|
|
4
4
|
from typing import Union, Callable
|
|
5
|
+
from pathlib import Path
|
|
5
6
|
from dotenv import load_dotenv
|
|
6
7
|
from functools import wraps
|
|
7
8
|
|
|
@@ -271,6 +272,31 @@ def assert_images_are_identical(
|
|
|
271
272
|
# a2 = read_image_as_numpy(filename_two)
|
|
272
273
|
# )
|
|
273
274
|
|
|
275
|
+
def does_file_exist(
|
|
276
|
+
filename: str,
|
|
277
|
+
do_check_is_not_0b: bool = True
|
|
278
|
+
) -> bool:
|
|
279
|
+
"""
|
|
280
|
+
Return `True` if the `filename` provided exists
|
|
281
|
+
and is a file.
|
|
282
|
+
|
|
283
|
+
If `do_check_is_not_0b` is `True`, the file must
|
|
284
|
+
also have a size greater than 0 bytes.
|
|
285
|
+
"""
|
|
286
|
+
output_path = Path(filename)
|
|
287
|
+
|
|
288
|
+
if not output_path.is_file():
|
|
289
|
+
return False
|
|
290
|
+
|
|
291
|
+
if (
|
|
292
|
+
do_check_is_not_0b and
|
|
293
|
+
output_path.stat().st_size == 0
|
|
294
|
+
):
|
|
295
|
+
return False
|
|
296
|
+
|
|
297
|
+
return True
|
|
298
|
+
|
|
299
|
+
|
|
274
300
|
class TestFilesHandler:
|
|
275
301
|
"""
|
|
276
302
|
Class to easily handle the files we
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|