qase-python-commons 3.1.0b7__tar.gz → 3.1.1__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 qase-python-commons might be problematic. Click here for more details.
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/PKG-INFO +2 -2
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/pyproject.toml +2 -2
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/client/api_v1_client.py +1 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/attachment.py +3 -13
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/result.py +4 -2
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase_python_commons.egg-info/PKG-INFO +2 -2
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase_python_commons.egg-info/requires.txt +1 -1
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/README.md +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/setup.cfg +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/config.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/api.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/batch.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/connection.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/framework.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/plan.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/qaseconfig.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/report.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/run.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/testops.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/suite.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/core.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/testops.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase_python_commons.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.1
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
|
|
@@ -22,7 +22,7 @@ Requires-Python: >=3.7
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
Requires-Dist: certifi>=2024.2.2
|
|
24
24
|
Requires-Dist: attrs>=23.2.0
|
|
25
|
-
Requires-Dist: qase-api-client~=1.0
|
|
25
|
+
Requires-Dist: qase-api-client~=1.1.0
|
|
26
26
|
Requires-Dist: qase-api-v2-client~=1.0.0
|
|
27
27
|
Requires-Dist: more_itertools
|
|
28
28
|
Provides-Extra: testing
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qase-python-commons"
|
|
7
|
-
version = "3.1.
|
|
7
|
+
version = "3.1.1"
|
|
8
8
|
description = "A library for Qase TestOps and Qase Report"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "Qase Team", email = "support@qase.io"}]
|
|
@@ -30,7 +30,7 @@ requires-python = ">=3.7"
|
|
|
30
30
|
dependencies = [
|
|
31
31
|
"certifi>=2024.2.2",
|
|
32
32
|
"attrs>=23.2.0",
|
|
33
|
-
"qase-api-client~=1.0
|
|
33
|
+
"qase-api-client~=1.1.0",
|
|
34
34
|
"qase-api-v2-client~=1.0.0",
|
|
35
35
|
"more_itertools"
|
|
36
36
|
]
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/attachment.py
RENAMED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import os
|
|
2
1
|
import uuid
|
|
3
2
|
import json
|
|
4
|
-
import pathlib
|
|
5
3
|
|
|
6
|
-
from typing import Optional
|
|
7
|
-
from io import BytesIO
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from io import BytesIO
|
|
8
6
|
from .basemodel import BaseModel
|
|
9
7
|
|
|
10
8
|
|
|
@@ -26,17 +24,8 @@ class Attachment(BaseModel):
|
|
|
26
24
|
if (not isinstance(content, str)) and (not isinstance(content, bytes)):
|
|
27
25
|
self.content = json.dumps(self.content, default=lambda o: o.__dict__, sort_keys=False, indent=4)
|
|
28
26
|
|
|
29
|
-
self.size = self._get_size(content)
|
|
30
27
|
self.id = str(uuid.uuid4())
|
|
31
28
|
|
|
32
|
-
def _get_size(self, content):
|
|
33
|
-
if self.file_path:
|
|
34
|
-
return os.path.getsize(self.file_path)
|
|
35
|
-
elif content:
|
|
36
|
-
return len(content)
|
|
37
|
-
else:
|
|
38
|
-
return 0
|
|
39
|
-
|
|
40
29
|
def get_id(self) -> str:
|
|
41
30
|
return self.id
|
|
42
31
|
|
|
@@ -51,4 +40,5 @@ class Attachment(BaseModel):
|
|
|
51
40
|
content = BytesIO(self.content)
|
|
52
41
|
content.name = self.file_name
|
|
53
42
|
content.mime = self.mime_type
|
|
43
|
+
|
|
54
44
|
return content
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import time
|
|
2
2
|
import uuid
|
|
3
|
-
import json
|
|
4
3
|
|
|
5
4
|
from typing import Type, Optional, Union, Dict, List
|
|
6
|
-
from pathlib import PosixPath
|
|
7
5
|
from .basemodel import BaseModel
|
|
8
6
|
from .step import Step
|
|
9
7
|
from .suite import Suite
|
|
@@ -79,6 +77,7 @@ class Result(BaseModel):
|
|
|
79
77
|
self.attachments: List[Attachment] = []
|
|
80
78
|
self.steps: List[Type[Step]] = []
|
|
81
79
|
self.params: Optional[dict] = {}
|
|
80
|
+
self.param_groups: Optional[List[List[str]]] = []
|
|
82
81
|
self.author: Optional[str] = None
|
|
83
82
|
self.relations: List[Type[Relation]] = []
|
|
84
83
|
self.muted: bool = False
|
|
@@ -104,6 +103,9 @@ class Result(BaseModel):
|
|
|
104
103
|
def add_param(self, key: str, value: str) -> None:
|
|
105
104
|
self.params[key] = value
|
|
106
105
|
|
|
106
|
+
def add_param_groups(self, values: List[str]) -> None:
|
|
107
|
+
self.param_groups.append(values)
|
|
108
|
+
|
|
107
109
|
def add_relation(self, relation: Type[Relation]) -> None:
|
|
108
110
|
self.relations.append(relation)
|
|
109
111
|
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase_python_commons.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.1
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
|
|
@@ -22,7 +22,7 @@ Requires-Python: >=3.7
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
Requires-Dist: certifi>=2024.2.2
|
|
24
24
|
Requires-Dist: attrs>=23.2.0
|
|
25
|
-
Requires-Dist: qase-api-client~=1.0
|
|
25
|
+
Requires-Dist: qase-api-client~=1.1.0
|
|
26
26
|
Requires-Dist: qase-api-v2-client~=1.0.0
|
|
27
27
|
Requires-Dist: more_itertools
|
|
28
28
|
Provides-Extra: testing
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/client/base_api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/api.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/batch.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/plan.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/run.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/config/testops.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/relation.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/models/runtime.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/profilers/sleep.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/core.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/reporters/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.1.0b7 → qase_python_commons-3.1.1}/src/qase/commons/validators/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|