qase-python-commons 3.0.2b5__tar.gz → 3.0.2b7__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.
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/PKG-INFO +1 -1
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/pyproject.toml +1 -1
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/client/api_v1_client.py +3 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/logger.py +1 -1
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/step.py +2 -2
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/utils.py +0 -10
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase_python_commons.egg-info/PKG-INFO +1 -1
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/README.md +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/setup.cfg +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/client/api_v2_client.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/config.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/attachment.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/suite.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/core.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/testops.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase_python_commons.egg-info/requires.txt +0 -0
- {qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/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.0.
|
|
3
|
+
Version: 3.0.2b7
|
|
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
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qase-python-commons"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.2b7"
|
|
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"}]
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/client/api_v1_client.py
RENAMED
|
@@ -202,6 +202,9 @@ class ApiV1Client(BaseApiClient):
|
|
|
202
202
|
if step.execution.status == 'untested':
|
|
203
203
|
prepared_step["status"] = 'passed'
|
|
204
204
|
|
|
205
|
+
if step.execution.status == 'skipped':
|
|
206
|
+
prepared_step["status"] = 'blocked'
|
|
207
|
+
|
|
205
208
|
if step.step_type == StepType.TEXT:
|
|
206
209
|
prepared_step['action'] = step.data.action
|
|
207
210
|
if step.data.expected_result:
|
|
@@ -4,7 +4,7 @@ import os
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class Logger:
|
|
7
|
-
def __init__(self, debug: bool = False, prefix: str = '', dir: str = '
|
|
7
|
+
def __init__(self, debug: bool = False, prefix: str = '', dir: str = os.path.join('.', 'logs')) -> None:
|
|
8
8
|
self.debug = debug
|
|
9
9
|
if self.debug:
|
|
10
10
|
filename = f'{prefix}_{self._get_timestamp()}.log'
|
|
@@ -80,10 +80,10 @@ class StepExecution(BaseModel):
|
|
|
80
80
|
self.duration = duration
|
|
81
81
|
|
|
82
82
|
def set_status(self, status: Optional[str]):
|
|
83
|
-
if status in ['passed', 'failed', 'skipped', 'untested']:
|
|
83
|
+
if status in ['passed', 'failed', 'skipped', 'blocked', 'untested']:
|
|
84
84
|
self.status = status
|
|
85
85
|
else:
|
|
86
|
-
raise ValueError('Step status must be one of: passed, failed, skipped, untested')
|
|
86
|
+
raise ValueError('Step status must be one of: passed, failed, skipped, blocked, untested')
|
|
87
87
|
|
|
88
88
|
def complete(self):
|
|
89
89
|
self.end_time = time.time()
|
|
@@ -6,8 +6,6 @@ import pip
|
|
|
6
6
|
import string
|
|
7
7
|
import uuid
|
|
8
8
|
|
|
9
|
-
from pkg_resources import DistributionNotFound, get_distribution
|
|
10
|
-
|
|
11
9
|
|
|
12
10
|
class QaseUtils:
|
|
13
11
|
|
|
@@ -62,14 +60,6 @@ class QaseUtils:
|
|
|
62
60
|
def get_filename(path) -> str:
|
|
63
61
|
return os.path.basename(path)
|
|
64
62
|
|
|
65
|
-
@staticmethod
|
|
66
|
-
def package_version(name):
|
|
67
|
-
try:
|
|
68
|
-
version = get_distribution(name).version
|
|
69
|
-
except DistributionNotFound:
|
|
70
|
-
version = "unknown"
|
|
71
|
-
return version
|
|
72
|
-
|
|
73
63
|
|
|
74
64
|
class StringFormatter(string.Formatter):
|
|
75
65
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.2b7
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/client/api_v2_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/attachment.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/relation.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/result.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/runtime.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/models/suite.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/db.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/profilers/sleep.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/core.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/reporters/testops.py
RENAMED
|
File without changes
|
{qase_python_commons-3.0.2b5 → qase_python_commons-3.0.2b7}/src/qase/commons/validators/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|