-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature : updated the
file
reporter and support new API v2 client
- Loading branch information
Showing
9 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# [email protected] | ||
|
||
## What's new | ||
|
||
Updated the `file` reporter and support new API v2 client | ||
|
||
# [email protected] | ||
|
||
## What's new | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "qase-python-commons" | ||
version = "3.1.9" | ||
version = "3.2.0" | ||
description = "A library for Qase TestOps and Qase Report" | ||
readme = "README.md" | ||
authors = [{name = "Qase Team", email = "[email protected]"}] | ||
|
@@ -31,7 +31,7 @@ dependencies = [ | |
"certifi>=2024.2.2", | ||
"attrs>=23.2.0", | ||
"qase-api-client~=1.1.1", | ||
"qase-api-v2-client~=1.0.0", | ||
"qase-api-v2-client~=1.1.0", | ||
"more_itertools" | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
from .basemodel import BaseModel | ||
|
||
|
||
class RelationSuite(BaseModel): | ||
def __init__(self, suite_id: int, title: str) -> None: | ||
self.suite_id = suite_id | ||
class SuiteData(BaseModel): | ||
def __init__(self, title: str) -> None: | ||
self.public_id = None | ||
self.title = title | ||
|
||
|
||
class RelationSuite(BaseModel): | ||
def __init__(self) -> None: | ||
self.data = [] | ||
|
||
def add_data(self, data: SuiteData) -> None: | ||
self.data.append(data) | ||
|
||
|
||
class Relation(BaseModel): | ||
def __init__(self, type: str, data: RelationSuite): | ||
self.type = type | ||
self.data = data | ||
def __init__(self): | ||
self.suite = RelationSuite() | ||
|
||
def add_suite(self, suite: SuiteData) -> None: | ||
self.suite.add_data(suite) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters