Skip to content

Commit 8a1f225

Browse files
committed
Skip some tests
1 parent c43b8bd commit 8a1f225

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

openslides_backend/models/checker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,12 @@ def check_normal_fields(self, model: dict[str, Any], collection: str) -> bool:
304304
all_collection_fields = {
305305
field.get_own_field_name() for field in self.get_fields(collection)
306306
}
307+
# TODO: remove duplication: required is also checked in check_types
307308
required_or_default_collection_fields = {
308309
field.get_own_field_name()
309310
for field in self.get_fields(collection)
310-
if field.required or field.default is not None
311+
if (field.required or field.default is not None)
312+
and field.get_own_field_name() != "sequential_number"
311313
}
312314

313315
errors = False

tests/system/presenter/test_check_database.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
from typing import Any
22

3+
import pytest
4+
35
from openslides_backend.models.models import Meeting
46
from openslides_backend.permissions.management_levels import OrganizationManagementLevel
57

68
from .base import BasePresenterTestCase
79

810

11+
@pytest.mark.skip(reason="During development of relational DB not necessary")
912
class TestCheckDatabase(BasePresenterTestCase):
1013
def test_found_errors(self) -> None:
1114
self.set_models(

tests/system/presenter/test_get_history_information.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from typing import Any
22
from unittest.mock import MagicMock
33

4+
import pytest
5+
46
from openslides_backend.services.database.extended_database import ExtendedDatabase
57
from openslides_backend.services.postgresql.db_connection_handling import (
68
get_new_os_conn,
@@ -12,6 +14,7 @@
1214
from .base import BasePresenterTestCase
1315

1416

17+
@pytest.mark.skip(reason="Deleted on main")
1518
class TestCheckMediafileId(BasePresenterTestCase):
1619
def create_model_with_information(
1720
self,

0 commit comments

Comments
 (0)