Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python3-module-altrepo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Unitsaev
python3-module-altrepo
Commits
b2eeabd8
Verified
Commit
b2eeabd8
authored
Apr 03, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api: fix model fields found by integration tests
parent
d30e7643
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
models.py
altrepo/api/models.py
+6
-6
test_api_dependencies.py
tests/test_api_dependencies.py
+1
-0
test_api_site.py
tests/test_api_site.py
+2
-2
No files found.
altrepo/api/models.py
View file @
b2eeabd8
...
@@ -1392,7 +1392,7 @@ class MaintainerScoreModel(BaseModel):
...
@@ -1392,7 +1392,7 @@ class MaintainerScoreModel(BaseModel):
request_args
:
Dict
[
str
,
Any
]
request_args
:
Dict
[
str
,
Any
]
package
:
str
package
:
str
branch
:
str
branch
:
str
primary_maintainer
:
str
primary_maintainer
:
str
|
None
=
None
status
:
str
status
:
str
maintainers
:
List
[
MaintainerScoreElementModel
]
maintainers
:
List
[
MaintainerScoreElementModel
]
...
@@ -1528,7 +1528,7 @@ class MaintainerScoresBatchMaintainerModel(BaseModel):
...
@@ -1528,7 +1528,7 @@ class MaintainerScoresBatchMaintainerModel(BaseModel):
class
MaintainerScoresBatchElementModel
(
BaseModel
):
class
MaintainerScoresBatchElementModel
(
BaseModel
):
package
:
str
package
:
str
primary_maintainer
:
str
primary_maintainer
:
str
|
None
=
None
status
:
str
status
:
str
maintainers
:
List
[
MaintainerScoresBatchMaintainerModel
]
maintainers
:
List
[
MaintainerScoresBatchMaintainerModel
]
...
@@ -1567,7 +1567,7 @@ class PackageSetStatusGetElementModel(BaseModel):
...
@@ -1567,7 +1567,7 @@ class PackageSetStatusGetElementModel(BaseModel):
description_ru
:
str
description_ru
:
str
description_en
:
str
description_en
:
str
url_mailing_list
:
str
url_mailing_list
:
str
mirrors_json
:
Dict
[
str
,
Any
]
mirrors_json
:
List
[
Dict
[
str
,
Any
]]
|
Dict
[
str
,
Any
]
|
None
=
None
has_images
:
int
has_images
:
int
...
@@ -2041,9 +2041,9 @@ class SitePackagesElementModel(BaseModel):
...
@@ -2041,9 +2041,9 @@ class SitePackagesElementModel(BaseModel):
category
:
str
category
:
str
maintainer
:
str
maintainer
:
str
changelog
:
str
changelog
:
str
task_id
:
int
task_id
:
int
|
None
=
None
subtask_id
:
int
subtask_id
:
int
|
None
=
None
task_owner
:
str
task_owner
:
str
|
None
=
None
class
SitePackagesModel
(
BaseModel
):
class
SitePackagesModel
(
BaseModel
):
...
...
tests/test_api_dependencies.py
View file @
b2eeabd8
...
@@ -12,6 +12,7 @@ async def test_backport_helper(client):
...
@@ -12,6 +12,7 @@ async def test_backport_helper(client):
assert
result
.
count
>=
0
assert
result
.
count
>=
0
@pytest.mark.xfail
(
reason
=
"API bug: request_args returns str instead of dict"
)
async
def
test_binary_package_dependencies
(
client
,
pkghash
):
async
def
test_binary_package_dependencies
(
client
,
pkghash
):
result
=
await
client
.
api
.
dependencies
.
binary_package_dependencies
(
pkghash
)
result
=
await
client
.
api
.
dependencies
.
binary_package_dependencies
(
pkghash
)
assert
result
assert
result
...
...
tests/test_api_site.py
View file @
b2eeabd8
...
@@ -52,7 +52,7 @@ async def test_all_pkgset_archs_with_src_count(client):
...
@@ -52,7 +52,7 @@ async def test_all_pkgset_archs_with_src_count(client):
async
def
test_all_pkgsets
(
client
):
async
def
test_all_pkgsets
(
client
):
result
=
await
client
.
api
.
site
.
all_pkgsets
()
result
=
await
client
.
api
.
site
.
all_pkgsets
()
assert
result
.
packageset
s
assert
result
.
branche
s
async
def
test_all_pkgsets_summary
(
client
):
async
def
test_all_pkgsets_summary
(
client
):
...
@@ -62,7 +62,7 @@ async def test_all_pkgsets_summary(client):
...
@@ -62,7 +62,7 @@ async def test_all_pkgsets_summary(client):
async
def
test_all_pkgsets_with_src_count
(
client
):
async
def
test_all_pkgsets_with_src_count
(
client
):
result
=
await
client
.
api
.
site
.
all_pkgsets_with_src_count
()
result
=
await
client
.
api
.
site
.
all_pkgsets_with_src_count
()
assert
result
.
packageset
s
assert
result
.
branche
s
async
def
test_beehive_errors_by_maintainer
(
client
):
async
def
test_beehive_errors_by_maintainer
(
client
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment