Source: sqlalchemy
Control: found -1 sqlalchemy/2.0.31+ds1-1
Tags: sid trixie
User: debian...@lists.debian.org
Usertags: breaks

Dear maintainer(s),

With a recent upload of sqlalchemy the autopkgtest of sqlacodegen fails in testing when that autopkgtest is run with the binary packages of sqlalchemy from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
sqlalchemy             from testing    2.0.31+ds1-1
sqlacodegen            from testing    3.0.0~rc3-2
all others             from testing    from testing

The package of sqlacodegen in unstable isn't affected and it also has this in the changelog: "Require sqlalchemy version 2+". So it seems to me that the new version of sqlalchemy Breaks the version of sqlacodegen in testing. To avoid surprises during (partial) upgrades, maybe a versioned Breaks is appropriate? With the versioned Breaks, britney2 (the migration software) can also figure out that the packages need to go together, schedule the autopkgtest with both packages from unstable, so it will not show the regression. If this happens to be a test only issue (given the changelog entry and the versioned (Build-)Depends I doubt this) and you don't want to add the versioned Breaks, please let the Release Team know, such that we can apply the right tricks.

I copied some of the output at the bottom of this report.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=sqlalchemy

https://ci.debian.net/data/autopkgtest/testing/amd64/s/sqlacodegen/48418754/log.gz

=================================== FAILURES =================================== 61s _____________________________ test_cli_declarative _____________________________
 61s tests/test_cli.py:103: in test_cli_declarative
 61s     assert (
61s E AssertionError: assert 'from sqlalch...olumn(Text)\n' == 'from sqlalch...olumn(Text)\n'
 61s E      61s E       from sqlalchemy import Integer, Text
61s E + 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E        61s E       class Base(DeclarativeBase):
 61s E           pass...
61s E 61s E ...Full output truncated (7 lines hidden), use '-vv' to show 61s ______________________________ test_cli_dataclass ______________________________
 61s tests/test_cli.py:159: in test_cli_dataclass
 61s     assert (
61s E AssertionError: assert 'from sqlalch...olumn(Text)\n' == 'from sqlalch...olumn(Text)\n'
 61s E      61s E       from sqlalchemy import Integer, Text
61s E + 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass, mapped_column
 61s E        61s E       class Base(MappedAsDataclass, DeclarativeBase):
 61s E           pass...
61s E 61s E ...Full output truncated (7 lines hidden), use '-vv' to show 61s _______________________________ test_basic_class _______________________________
 61s tests/test_generator_dataclass2.py:34: in test_basic_class
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E AssertionError: assert 'from sqlalch...String(20))\n' == 'from typing ...String(20))\n'
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import Integer, String
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (9 lines hidden), use '-vv' to show 61s __________________________ test_mandatory_field_last ___________________________
 61s tests/test_generator_dataclass2.py:65: in test_mandatory_field_last
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ext('foo'))\n" == "from typing ...ext('foo'))\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import Integer, String, text
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (10 lines hidden), use '-vv' to show 61s ___________________________ test_onetomany_optional ____________________________
 61s tests/test_generator_dataclass2.py:103: in test_onetomany_optional
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s _______________________________ test_manytomany ________________________________
 61s tests/test_generator_dataclass2.py:154: in test_manytomany
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...rs.id'))\n)\n" == "from typing ...rs.id'))\n)\n"
 61s E      61s E     - from typing import List
61s E - 61s E from sqlalchemy import Column, ForeignKey, Integer, Table 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass, mapped_column, relationship
 61s E     + from typing import List
 61s E       ...
61s E 61s E ...Full output truncated (25 lines hidden), use '-vv' to show 61s ______________________ test_named_foreign_key_constraints ______________________ 61s tests/test_generator_dataclass2.py:210: in test_named_foreign_key_constraints
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
61s E - 61s E from sqlalchemy import ForeignKeyConstraint, Integer 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (22 lines hidden), use '-vv' to show 61s __________________________ test_uuid_type_annotation ___________________________
 61s tests/test_generator_dataclass2.py:255: in test_uuid_type_annotation
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E AssertionError: assert 'from sqlalch...y_key=True)\n' == 'from sqlalch...y_key=True)\n' 61s E 61s E Skipping 103 identical leading characters in diff, use -v to show
 61s E       ed_column
 61s E     +  61s E       import uuid
61s E 61s E class Base(MappedAsDataclass, DeclarativeBase):... 61s E 61s E ...Full output truncated (7 lines hidden), use '-vv' to show 61s _________________________________ test_indexes _________________________________
 61s tests/test_generator_declarative2.py:49: in test_indexes
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E AssertionError: assert 'from sqlalch...umn(String)\n' == 'from typing ...umn(String)\n'
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import Index, Integer, String
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (15 lines hidden), use '-vv' to show 61s _______________________________ test_constraints _______________________________
 61s tests/test_generator_declarative2.py:86: in test_constraints
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E AssertionError: assert 'from sqlalch...mn(Integer)\n' == 'from typing ...mn(Integer)\n'
 61s E      61s E     - from typing import Optional
61s E - 61s E from sqlalchemy import CheckConstraint, Integer, UniqueConstraint 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (13 lines hidden), use '-vv' to show 61s ________________________________ test_onetomany ________________________________
 61s tests/test_generator_declarative2.py:125: in test_onetomany
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ____________________________ test_onetomany_selfref ____________________________
 61s tests/test_generator_declarative2.py:168: in test_onetomany_selfref
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...rent_item')\n" == "from typing ...rent_item')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (12 lines hidden), use '-vv' to show 61s _________________________ test_onetomany_selfref_multi _________________________ 61s tests/test_generator_declarative2.py:206: in test_onetomany_selfref_multi
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...'top_item')\n" == "from typing ...'top_item')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (15 lines hidden), use '-vv' to show 61s ___________________________ test_onetomany_composite ___________________________
 61s tests/test_generator_declarative2.py:260: in test_onetomany_composite
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
61s E - 61s E from sqlalchemy import ForeignKeyConstraint, Integer 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (24 lines hidden), use '-vv' to show 61s ___________________________ test_onetomany_multiref ____________________________
 61s tests/test_generator_declarative2.py:316: in test_onetomany_multiref
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...le_items_')\n" == "from typing ...le_items_')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (22 lines hidden), use '-vv' to show 61s ________________________________ test_onetoone _________________________________
 61s tests/test_generator_declarative2.py:371: in test_onetoone
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ___________________________ test_onetomany_noinflect ___________________________
 61s tests/test_generator_declarative2.py:415: in test_onetomany_noinflect
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...'oglkrogk')\n" == "from typing ...'oglkrogk')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ______________________ test_onetomany_conflicting_column _______________________ 61s tests/test_generator_declarative2.py:463: in test_onetomany_conflicting_column
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer, Text
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (20 lines hidden), use '-vv' to show 61s ___________________ test_onetomany_conflicting_relationship ____________________ 61s tests/test_generator_declarative2.py:508: in test_onetomany_conflicting_relationship
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ______________________ test_manytoone_nobidi[generator0] _______________________
 61s tests/test_generator_declarative2.py:557: in test_manytoone_nobidi
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ontainers')\n" == "from typing ...ontainers')\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (17 lines hidden), use '-vv' to show 61s _______________________________ test_manytomany ________________________________
 61s tests/test_generator_declarative2.py:603: in test_manytomany
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...le.id'))\n)\n" == "from typing ...le.id'))\n)\n"
 61s E      61s E     - from typing import List
61s E - 61s E from sqlalchemy import Column, ForeignKey, Integer, Table 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List
 61s E       ...
61s E 61s E ...Full output truncated (25 lines hidden), use '-vv' to show 61s ______________________ test_manytomany_nobidi[generator0] ______________________
 61s tests/test_generator_declarative2.py:659: in test_manytomany_nobidi
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...rs.id'))\n)\n" == "from typing ...rs.id'))\n)\n"
 61s E      61s E     - from typing import List
61s E - 61s E from sqlalchemy import Column, ForeignKey, Integer, Table 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List
 61s E       ...
61s E 61s E ...Full output truncated (23 lines hidden), use '-vv' to show 61s ___________________________ test_manytomany_selfref ____________________________
 61s tests/test_generator_declarative2.py:707: in test_manytomany_selfref
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...rschema'\n)\n" == "from typing ...rschema'\n)\n"
 61s E      61s E     - from typing import List
61s E - 61s E from sqlalchemy import Column, ForeignKey, Integer, Table 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s __________________________ test_manytomany_composite ___________________________
 61s tests/test_generator_declarative2.py:775: in test_manytomany_composite
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...s.id2'])\n)\n" == "from typing ...s.id2'])\n)\n"
 61s E      61s E     - from typing import List
61s E - 61s E from sqlalchemy import Column, ForeignKeyConstraint, Integer, Table 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List
 61s E       ...
61s E 61s E ...Full output truncated (31 lines hidden), use '-vv' to show 61s ___________________________ test_joined_inheritance ____________________________
 61s tests/test_generator_declarative2.py:845: in test_joined_inheritance
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E AssertionError: assert 'from sqlalch...mn(Integer)\n' == 'from typing ...mn(Integer)\n'
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (23 lines hidden), use '-vv' to show 61s ________ test_use_inflect_plural[test_inflect_manufacturer-generator0] _________
 61s tests/test_generator_declarative2.py:982: in test_use_inflect_plural
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...mple_item')\n" == "from typing ...mple_item')\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ___________ test_use_inflect_plural[test_inflect_status-generator0] ____________
 61s tests/test_generator_declarative2.py:982: in test_use_inflect_plural
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...mple_item')\n" == "from typing ...mple_item')\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ____________ test_use_inflect_plural[test_inflect_study-generator0] ____________
 61s tests/test_generator_declarative2.py:982: in test_use_inflect_plural
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...mple_item')\n" == "from typing ...mple_item')\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ____________ test_use_inflect_plural[test_inflect_moose-generator0] ____________
 61s tests/test_generator_declarative2.py:982: in test_use_inflect_plural
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...mple_item')\n" == "from typing ...mple_item')\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s ____________________________ test_table_args_kwargs ____________________________
 61s tests/test_generator_declarative2.py:1053: in test_table_args_kwargs
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E AssertionError: assert 'from sqlalch...umn(String)\n' == 'from typing ...umn(String)\n'
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import Index, Integer, String
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (13 lines hidden), use '-vv' to show 61s ___________________________ test_foreign_key_schema ____________________________
 61s tests/test_generator_declarative2.py:1093: in test_foreign_key_schema
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
 61s E     -  61s E       from sqlalchemy import ForeignKey, Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (20 lines hidden), use '-vv' to show 61s _________________________ test_invalid_attribute_names _________________________ 61s tests/test_generator_declarative2.py:1138: in test_invalid_attribute_names
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...', Integer)\n" == "from typing ...', Integer)\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import Integer
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (11 lines hidden), use '-vv' to show 61s _____________________________ test_metadata_column _____________________________
 61s tests/test_generator_declarative2.py:1327: in test_metadata_column
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...a', String)\n" == "from typing ...a', String)\n"
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import Integer, String
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (9 lines hidden), use '-vv' to show 61s ____________________________ test_named_constraints ____________________________
 61s tests/test_generator_declarative2.py:1403: in test_named_constraints
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E AssertionError: assert 'from sqlalch...umn(String)\n' == 'from typing ...umn(String)\n'
 61s E      61s E     - from typing import Optional
61s E - 61s E from sqlalchemy import CheckConstraint, Integer, PrimaryKeyConstraint, String, UniqueConstraint 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (14 lines hidden), use '-vv' to show 61s ______________________ test_named_foreign_key_constraints ______________________ 61s tests/test_generator_declarative2.py:1446: in test_named_foreign_key_constraints
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_items')\n" == "from typing ...ple_items')\n"
 61s E      61s E     - from typing import List, Optional
61s E - 61s E from sqlalchemy import ForeignKeyConstraint, Integer 61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
 61s E     + from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (22 lines hidden), use '-vv' to show 61s _________________________ test_colname_import_conflict _________________________ 61s tests/test_generator_declarative2.py:1493: in test_colname_import_conflict
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert 'from sqlalch...\'test\'"))\n' == 'from typing ...\'test\'"))\n'
 61s E      61s E     - from typing import Optional
 61s E     -  61s E       from sqlalchemy import Integer, String, text
61s E from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
 61s E     + from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (10 lines hidden), use '-vv' to show 61s _________________________________ test_indexes _________________________________
 61s tests/test_generator_sqlmodel.py:46: in test_indexes
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...', String))\n" == "from sqlalch...', String))\n" 61s E 61s E - from sqlalchemy import Column, Index, Integer, String
 61s E     ?                        --------
 61s E     + from sqlalchemy import Index, Integer, String
 61s E       from sqlmodel import Field, SQLModel
 61s E       from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (19 lines hidden), use '-vv' to show 61s _______________________________ test_constraints _______________________________
 61s tests/test_generator_sqlmodel.py:80: in test_constraints
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch..., Integer))\n" == "from sqlalch..., Integer))\n" 61s E 61s E - from sqlalchemy import CheckConstraint, Column, Integer, UniqueConstraint
 61s E     ?                                         --------
61s E + from sqlalchemy import CheckConstraint, Integer, UniqueConstraint
 61s E       from sqlmodel import Field, SQLModel
 61s E       from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (15 lines hidden), use '-vv' to show 61s ________________________________ test_onetomany ________________________________
 61s tests/test_generator_sqlmodel.py:116: in test_onetomany
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch...ple_goods')\n" == "from sqlalch...ple_goods')\n"
 61s E      61s E     - from sqlalchemy import Column, ForeignKey, Integer
 61s E     ?                       --------
 61s E     + from sqlalchemy import ForeignKey, Integer
 61s E       from sqlmodel import Field, Relationship, SQLModel
 61s E       from typing import List, Optional
 61s E       ...
61s E 61s E ...Full output truncated (24 lines hidden), use '-vv' to show 61s ________________________________ test_onetoone _________________________________
 61s tests/test_generator_sqlmodel.py:158: in test_onetoone
 61s     validate_code(
 61s tests/conftest.py:38: in validate_code
 61s     assert generated_code == expected_code
61s E assert "from sqlalch..._onetoone')\n" == "from sqlalch..._onetoone')\n"
 61s E      61s E     - from sqlalchemy import Column, ForeignKey, Integer
 61s E     ?                       --------
 61s E     + from sqlalchemy import ForeignKey, Integer
 61s E       from sqlmodel import Field, Relationship, SQLModel
 61s E       from typing import Optional
 61s E       ...
61s E 61s E ...Full output truncated (24 lines hidden), use '-vv' to show 61s =========================== short test summary info ============================
 61s SKIPPED [1] tests/test_cli.py:178: Test requires SQLAlchemy 1.4.x
61s SKIPPED [1] tests/test_generator_dataclass.py:26: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_dataclass.py:61: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_dataclass.py:98: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_dataclass.py:155: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_dataclass.py:222: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_dataclass.py:285: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:35: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:73: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:105: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:148: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:180: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:220: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:278: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:329: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:369: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:407: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:451: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:489: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:530: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:583: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:633: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:680: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:754: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:810: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:847: Test requires SQLAlchemy 1.4.x 61s SKIPPED [4] tests/test_generator_declarative.py:876: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:938: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:964: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:996: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1040: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1070: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1094: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1118: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1142: Test requires SQLAlchemy 1.4.x 61s SKIPPED [2] tests/test_generator_declarative.py:1166: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1196: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1222: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1248: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1272: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1291: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1326: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_declarative.py:1375: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:39: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:67: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:97: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:123: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:148: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:169: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:193: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:219: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:248: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:278: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:318: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:343: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:366: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:393: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:419: Test requires SQLAlchemy 1.4.x 61s SKIPPED [3] tests/test_generator_tables.py:444: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:475: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:500: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:534: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:563: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:589: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:616: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:643: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:670: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:697: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:723: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:759: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:782: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:806: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:834: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:857: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:882: Test requires SQLAlchemy 1.4.x 61s SKIPPED [1] tests/test_generator_tables.py:911: Test requires SQLAlchemy 1.4.x 61s SKIPPED [4] tests/test_generator_tables.py:940: Test requires SQLAlchemy 1.4.x 61s ================== 40 failed, 53 passed, 86 skipped in 7.65s =================== 61s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest-lxc._awvyu5g/downtmp/autopkgtest_tmp/build; python3.11 -m pytest tests 62s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
 62s make: *** [/tmp/ES5rGoaWMs/run:4: pybuild-autopkgtest] Error 25
62s pybuild-autopkgtest: error: /tmp/ES5rGoaWMs/run pybuild-autopkgtest returned exit code 2
 62s autopkgtest [17:07:16]: test pybuild-autopkgtest

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to