Source: sqlmodel
Version: 0.0.8-2
Severity: serious
X-Debbugs-Cc: [email protected]
Hi,
Autopkgtest for new upload of sqlmodel are failing with
| # Test inherited indexes
| insp: Inspector = inspect(mod.engine)
| indexes = insp.get_indexes(str(mod.Hero.__tablename__))
| expected_indexes = [
| {"name": "ix_hero_age", "dialect_options": {}, "column_names":
["age"], "unique": 0},
| {"name": "ix_hero_name", "dialect_options": {}, "column_names":
["name"], "unique": 0},
| ]
| for index in expected_indexes:
| > assert index in indexes, "This expected index should be in the
indexes in DB"
| E AssertionError: This expected index should be in the indexes in DB
| E assert {'column_names': ['age'], 'dialect_options': {}, 'name':
'ix_hero_age', 'unique': 0} in [{'column_names': ['age'], 'name':
'ix_hero_age', 'unique': 0}, {'column_names': ['name'], 'name': 'ix_hero_name',
'unique': 0}]
Full log:
https://ci.debian.net/data/autopkgtest/testing/amd64/s/sqlmodel/29756092/log.gz
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.0.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled