Skip to content

Commit ce13113

Browse files
committed
Fix the tests
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
1 parent 206271f commit ce13113

6 files changed

Lines changed: 1385 additions & 762 deletions

File tree

bugzilla2fedmsg_schema/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .schema import MessageV1, MessageV1BZ4

bugzilla2fedmsg_schema/schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""fedora-messaging schema for bugzilla2fedmsg."""
22

33
import copy
4+
import typing
45

56
from fedora_messaging import message
67
from fedora_messaging.schema_utils import libravatar_url
@@ -159,7 +160,7 @@ class MessageV1(BaseMessage):
159160
bugzilla2fedmsg commit 08b3e0c5 with Bugzilla 4 compatibility DISABLED.
160161
"""
161162

162-
body_schema = {
163+
body_schema: typing.ClassVar = {
163164
"id": "http://fedoraproject.org/message-schema/bugzilla2fedmsg#",
164165
"$schema": "http://json-schema.org/draft-04/schema#",
165166
"description": "Schema for message sent by Bugzilla (v1, BZ4 compat disabled)",

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,16 @@ line-length = 100
5454
select = ["E", "F", "W", "I", "UP", "S", "B", "RUF"]
5555
line-length = 100
5656
target-version = "py38"
57-
# ignore = ["RUF010", "UP038"]
57+
ignore = ["RUF012"]
5858

5959
[tool.ruff.per-file-ignores]
60-
"tests/*" = ["S101"]
61-
"tests/test_schemas.py" = ["E501"]
62-
"tests/conftest.py" = ["E501"]
60+
"tests/*" = ["S101", "E501"]
61+
"bugzilla2fedmsg_schema/__init__.py" = ["F401"]
6362

6463
[tool.coverage.run]
6564
# Track what conditional branches are covered.
6665
branch = true
6766
source = [
68-
"bugzilla2fedmsg",
6967
"bugzilla2fedmsg_schema",
7068
]
7169

0 commit comments

Comments
 (0)