Your message dated Wed, 23 Nov 2022 06:04:17 +0000
with message-id <e1oxirp-006rpc...@fasolo.debian.org>
and subject line Bug#1022413: fixed in sqlmodel 0.0.8-1
has caused the Debian Bug report #1022413,
regarding sqlmodel: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i 
python{version} -p 3.10 returned exit code 13
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1022413: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022413
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: sqlmodel
Version: 0.0.6-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20221023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # test_create_db_and_table: converage cant find docs_src so this test fails
> PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PYTHONPATH=/<<PKGBUILDDIR>> 
> {interpreter} -m pytest -k 'not test_create_db_and_table' " dh_auto_test
>       pybuild --test --test-pytest -i python{version} -p 3.10
> I: pybuild base:240: PYTHONPATH=/<<PKGBUILDDIR>> python3.10 -m pytest -k 'not 
> test_create_db_and_table' 
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>
> plugins: anyio-3.6.1
> collected 114 items / 3 deselected / 111 selected
> 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py .......   [  
> 6%]
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_001.py .     [  
> 7%]
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_002.py .     [  
> 8%]
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_003.py .     [  
> 9%]
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_004.py .     [  
> 9%]
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_005.py .     [ 
> 10%]
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_006.py .     [ 
> 11%]
> tests/test_default.py ....                                               [ 
> 15%]
> tests/test_instance_no_args.py .                                         [ 
> 16%]
> tests/test_query.py .                                                    [ 
> 17%]
> tests/test_advanced/test_decimal/test_tutorial001.py .                   [ 
> 18%]
> tests/test_tutorial/test_automatic_id_none_refresh/test_tutorial001_tutorial002.py
>  . [ 18%]
> .                                                                        [ 
> 19%]
> tests/test_tutorial/test_code_structure/test_tutorial001.py .            [ 
> 20%]
> tests/test_tutorial/test_code_structure/test_tutorial002.py .            [ 
> 21%]
> tests/test_tutorial/test_connect/test_create_connected_tables/test_tutorial001.py
>  . [ 22%]
>                                                                          [ 
> 22%]
> tests/test_tutorial/test_connect/test_delete/test_tutorial001.py .       [ 
> 23%]
> tests/test_tutorial/test_connect/test_insert/test_tutorial001.py .       [ 
> 24%]
> tests/test_tutorial/test_connect/test_select/test_tutorial001_tutorial002.py 
> . [ 25%]
> .                                                                        [ 
> 26%]
> tests/test_tutorial/test_connect/test_select/test_tutorial003.py .       [ 
> 27%]
> tests/test_tutorial/test_connect/test_select/test_tutorial004.py .       [ 
> 27%]
> tests/test_tutorial/test_connect/test_select/test_tutorial005.py .       [ 
> 28%]
> tests/test_tutorial/test_connect/test_update/test_tutorial001.py .       [ 
> 29%]
> tests/test_tutorial/test_delete/test_tutorial001_tutorial002.py ..       [ 
> 31%]
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests001.py
>  . [ 32%]
>                                                                          [ 
> 32%]
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests002.py
>  . [ 33%]
>                                                                          [ 
> 33%]
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests003.py
>  . [ 34%]
>                                                                          [ 
> 34%]
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests004.py
>  . [ 35%]
>                                                                          [ 
> 35%]
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests005.py
>  . [ 36%]
>                                                                          [ 
> 36%]
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests006.py
>  . [ 36%]
>                                                                          [ 
> 36%]
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py
>  . [ 37%]
> ...........                                                              [ 
> 47%]
> tests/test_tutorial/test_fastapi/test_delete/test_tutorial001.py F       [ 
> 48%]
> tests/test_tutorial/test_fastapi/test_limit_and_offset/test_tutorial001.py F 
> [ 49%]
>                                                                          [ 
> 49%]
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial001.py F [ 
> 50%]
>                                                                          [ 
> 50%]
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial002.py F [ 
> 51%]
>                                                                          [ 
> 51%]
> tests/test_tutorial/test_fastapi/test_read_one/test_tutorial001.py F     [ 
> 52%]
> tests/test_tutorial/test_fastapi/test_relationships/test_tutorial001.py F [ 
> 53%]
>                                                                          [ 
> 53%]
> tests/test_tutorial/test_fastapi/test_response_model/test_tutorial001.py F [ 
> 54%]
>                                                                          [ 
> 54%]
> tests/test_tutorial/test_fastapi/test_session_with_dependency/test_tutorial001.py
>  F [ 54%]
>                                                                          [ 
> 54%]
> tests/test_tutorial/test_fastapi/test_simple_hero_api/test_tutorial001.py F [ 
> 55%]
>                                                                          [ 
> 55%]
> tests/test_tutorial/test_fastapi/test_teams/test_tutorial001.py F        [ 
> 56%]
> tests/test_tutorial/test_fastapi/test_update/test_tutorial001.py F       [ 
> 57%]
> tests/test_tutorial/test_indexes/test_tutorial001.py .                   [ 
> 58%]
> tests/test_tutorial/test_indexes/test_tutorial006.py .                   [ 
> 59%]
> tests/test_tutorial/test_insert/test_tutorial001.py .                    [ 
> 60%]
> tests/test_tutorial/test_insert/test_tutorial002.py .                    [ 
> 61%]
> tests/test_tutorial/test_insert/test_tutorial003.py .                    [ 
> 62%]
> tests/test_tutorial/test_limit_and_offset/test_tutorial001.py .          [ 
> 63%]
> tests/test_tutorial/test_limit_and_offset/test_tutorial002.py .          [ 
> 63%]
> tests/test_tutorial/test_limit_and_offset/test_tutorial003.py .          [ 
> 64%]
> tests/test_tutorial/test_limit_and_offset/test_tutorial004.py .          [ 
> 65%]
> tests/test_tutorial/test_many_to_many/test_tutorial001.py .              [ 
> 66%]
> tests/test_tutorial/test_many_to_many/test_tutorial002.py .              [ 
> 67%]
> tests/test_tutorial/test_many_to_many/test_tutorial003.py .              [ 
> 68%]
> tests/test_tutorial/test_one/test_tutorial001.py .                       [ 
> 69%]
> tests/test_tutorial/test_one/test_tutorial002.py .                       [ 
> 70%]
> tests/test_tutorial/test_one/test_tutorial003.py .                       [ 
> 71%]
> tests/test_tutorial/test_one/test_tutorial004.py .                       [ 
> 72%]
> tests/test_tutorial/test_one/test_tutorial005.py .                       [ 
> 72%]
> tests/test_tutorial/test_one/test_tutorial006.py .                       [ 
> 73%]
> tests/test_tutorial/test_one/test_tutorial007.py .                       [ 
> 74%]
> tests/test_tutorial/test_one/test_tutorial008.py .                       [ 
> 75%]
> tests/test_tutorial/test_one/test_tutorial009.py .                       [ 
> 76%]
> tests/test_tutorial/test_relationship_attributes/test_back_populates/test_tutorial001.py
>  . [ 77%]
>                                                                          [ 
> 77%]
> tests/test_tutorial/test_relationship_attributes/test_back_populates/test_tutorial002.py
>  . [ 78%]
>                                                                          [ 
> 78%]
> tests/test_tutorial/test_relationship_attributes/test_back_populates/test_tutorial003.py
>  . [ 79%]
>                                                                          [ 
> 79%]
> tests/test_tutorial/test_relationship_attributes/test_create_and_update_relationships/test_tutorial001.py
>  . [ 80%]
>                                                                          [ 
> 80%]
> tests/test_tutorial/test_relationship_attributes/test_define_relationship_attributes/test_tutorial001.py
>  . [ 81%]
>                                                                          [ 
> 81%]
> tests/test_tutorial/test_relationship_attributes/test_read_relationships/test_tutorial001.py
>  . [ 81%]
>                                                                          [ 
> 81%]
> tests/test_tutorial/test_relationship_attributes/test_read_relationships/test_tutorial002.py
>  . [ 82%]
>                                                                          [ 
> 82%]
> tests/test_tutorial/test_select/test_tutorial001_tutorial002.py ..       [ 
> 84%]
> tests/test_tutorial/test_select/test_tutorial003_tutorial004.py ..       [ 
> 86%]
> tests/test_tutorial/test_update/test_tutorial001_tutorial002.py ..       [ 
> 88%]
> tests/test_tutorial/test_update/test_tutorial003_tutorial004.py ..       [ 
> 90%]
> tests/test_tutorial/test_where/test_tutorial001.py .                     [ 
> 90%]
> tests/test_tutorial/test_where/test_tutorial002.py .                     [ 
> 91%]
> tests/test_tutorial/test_where/test_tutorial003.py .                     [ 
> 92%]
> tests/test_tutorial/test_where/test_tutorial004.py .                     [ 
> 93%]
> tests/test_tutorial/test_where/test_tutorial005.py .                     [ 
> 94%]
> tests/test_tutorial/test_where/test_tutorial006.py .                     [ 
> 95%]
> tests/test_tutorial/test_where/test_tutorial007.py .                     [ 
> 96%]
> tests/test_tutorial/test_where/test_tutorial008.py .                     [ 
> 97%]
> tests/test_tutorial/test_where/test_tutorial009.py .                     [ 
> 98%]
> tests/test_tutorial/test_where/test_tutorial010.py .                     [ 
> 99%]
> tests/test_tutorial/test_where/test_tutorial011.py .                     
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.delete import tutorial001 as mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             hero3_data = {
>                 "name": "Rusty-Man",
>                 "secret_name": "Tommy Sharp",
>                 "age": 48,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             assert response.status_code == 200, response.text
>             response = client.post("/heroes/", json=hero2_data)
>             assert response.status_code == 200, response.text
>             hero2 = response.json()
>             hero2_id = hero2["id"]
>             response = client.post("/heroes/", json=hero3_data)
>             assert response.status_code == 200, response.text
>             response = client.get(f"/heroes/{hero2_id}")
>             assert response.status_code == 200, response.text
>             response = client.get("/heroes/9000")
>             assert response.status_code == 404, response.text
>             response = client.get("/openapi.json")
>             data = response.json()
>             assert response.status_code == 200, response.text
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...or'}}, ...}}}} == 
> {'components'...or'}}, ...}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 
> 'type...'string'}, 'secret_name': {'title': 'Secret Name', 'type': 
> 'string'}}, 'title': 'HeroUpdate', 'type': 'object'}, ...}}} != 
> {'components': {'schemas': {'HTTPValidationError': {'properties': {'detail': 
> {'items': {...}, 'title': 'Detail', 'type...'string'}, 'secret_name': 
> {'title': 'Secret Name', 'type': 'string'}}, 'title': 'HeroUpdate', 'type': 
> 'object'}, ...}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_delete/test_tutorial001.py:291: 
> AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.limit_and_offset import tutorial001 as 
> mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             hero3_data = {
>                 "name": "Rusty-Man",
>                 "secret_name": "Tommy Sharp",
>                 "age": 48,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             assert response.status_code == 200, response.text
>             response = client.post("/heroes/", json=hero2_data)
>             assert response.status_code == 200, response.text
>             hero2 = response.json()
>             hero_id = hero2["id"]
>             response = client.post("/heroes/", json=hero3_data)
>             assert response.status_code == 200, response.text
>             response = client.get(f"/heroes/{hero_id}")
>             assert response.status_code == 200, response.text
>             response = client.get("/heroes/9000")
>             assert response.status_code == 404, response.text
>             response = client.get("/openapi.json")
>             data = response.json()
>             assert response.status_code == 200, response.text
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...Read Hero'}}}} == 
> {'components'...Read Hero'}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type... 'Error 
> Type', 'type': 'string'}}, 'required': ['loc', 'msg', 'type'], 'title': 
> 'ValidationError', 'type': 'object'}}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type... 'Error Type', 'type': 'string'}}, 'required': ['loc', 
> 'msg', 'type'], 'title': 'ValidationError', 'type': 'object'}}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_limit_and_offset/test_tutorial001.py:214:
>  AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.multiple_models import tutorial001 as 
> mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert data["name"] == hero1_data["name"]
>             assert data["secret_name"] == hero1_data["secret_name"]
>             assert data["id"] is not None
>             assert data["age"] is None
>     
>             response = client.post("/heroes/", json=hero2_data)
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert data["name"] == hero2_data["name"]
>             assert data["secret_name"] == hero2_data["secret_name"]
>             assert data["id"] != hero2_data["id"], (
>                 "Now it's not possible to predefine the ID from the request, "
>                 "it's now set by the database"
>             )
>             assert data["age"] is None
>     
>             response = client.get("/heroes/")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert len(data) == 2
>             assert data[0]["name"] == hero1_data["name"]
>             assert data[0]["secret_name"] == hero1_data["secret_name"]
>             assert data[1]["name"] == hero2_data["name"]
>             assert data[1]["secret_name"] == hero2_data["secret_name"]
>             assert data[1]["id"] != hero2_data["id"]
>     
>             response = client.get("/openapi.json")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>     
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...eate Hero'}}}} == 
> {'components'...eate Hero'}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type... 'Error 
> Type', 'type': 'string'}}, 'required': ['loc', 'msg', 'type'], 'title': 
> 'ValidationError', 'type': 'object'}}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type... 'Error Type', 'type': 'string'}}, 'required': ['loc', 
> 'msg', 'type'], 'title': 'ValidationError', 'type': 'object'}}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial001.py:170:
>  AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.multiple_models import tutorial002 as 
> mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert data["name"] == hero1_data["name"]
>             assert data["secret_name"] == hero1_data["secret_name"]
>             assert data["id"] is not None
>             assert data["age"] is None
>     
>             response = client.post("/heroes/", json=hero2_data)
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert data["name"] == hero2_data["name"]
>             assert data["secret_name"] == hero2_data["secret_name"]
>             assert data["id"] != hero2_data["id"], (
>                 "Now it's not possible to predefine the ID from the request, "
>                 "it's now set by the database"
>             )
>             assert data["age"] is None
>     
>             response = client.get("/heroes/")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert len(data) == 2
>             assert data[0]["name"] == hero1_data["name"]
>             assert data[0]["secret_name"] == hero1_data["secret_name"]
>             assert data[1]["name"] == hero2_data["name"]
>             assert data[1]["secret_name"] == hero2_data["secret_name"]
>             assert data[1]["id"] != hero2_data["id"]
>     
>             response = client.get("/openapi.json")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>     
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...eate Hero'}}}} == 
> {'components'...eate Hero'}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type... 'Error 
> Type', 'type': 'string'}}, 'required': ['loc', 'msg', 'type'], 'title': 
> 'ValidationError', 'type': 'object'}}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type... 'Error Type', 'type': 'string'}}, 'required': ['loc', 
> 'msg', 'type'], 'title': 'ValidationError', 'type': 'object'}}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial002.py:170:
>  AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.read_one import tutorial001 as mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             assert response.status_code == 200, response.text
>             response = client.post("/heroes/", json=hero2_data)
>             assert response.status_code == 200, response.text
>             hero2 = response.json()
>             response = client.get("/heroes/")
>             assert response.status_code == 200, response.text
>             data = response.json()
>             assert len(data) == 2
>     
>             hero_id = hero2["id"]
>             response = client.get(f"/heroes/{hero_id}")
>             assert response.status_code == 200, response.text
>             data = response.json()
>             assert data == hero2
>     
>             response = client.get("/heroes/9000")
>             assert response.status_code == 404, response.text
>     
>             response = client.get("/openapi.json")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>     
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...Read Hero'}}}} == 
> {'components'...Read Hero'}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type... 'Error 
> Type', 'type': 'string'}}, 'required': ['loc', 'msg', 'type'], 'title': 
> 'ValidationError', 'type': 'object'}}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type... 'Error Type', 'type': 'string'}}, 'required': ['loc', 
> 'msg', 'type'], 'title': 'ValidationError', 'type': 'object'}}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_read_one/test_tutorial001.py:189: 
> AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.relationships import tutorial001 as mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>             response = client.get("/openapi.json")
>             data = response.json()
>             assert response.status_code == 200, response.text
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...or'}}, ...}}}} == 
> {'components'...or'}}, ...}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type...pe': 
> 'string'}, ...}, 'required': ['name', 'secret_name', 'id'], 'title': 
> 'HeroReadWithTeam', 'type': 'object'}, ...}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type...pe': 'string'}, ...}, 'required': ['name', 'secret_name', 
> 'id'], 'title': 'HeroReadWithTeam', 'type': 'object'}, ...}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_relationships/test_tutorial001.py:514: 
> AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.response_model import tutorial001 as 
> mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             response = client.post("/heroes/", json=hero_data)
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert data["name"] == hero_data["name"]
>             assert data["secret_name"] == hero_data["secret_name"]
>             assert data["id"] is not None
>             assert data["age"] is None
>     
>             response = client.get("/heroes/")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert len(data) == 1
>             assert data[0]["name"] == hero_data["name"]
>             assert data[0]["secret_name"] == hero_data["secret_name"]
>     
>             response = client.get("/openapi.json")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>     
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...eate Hero'}}}} == 
> {'components'...eate Hero'}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type... 'Error 
> Type', 'type': 'string'}}, 'required': ['loc', 'msg', 'type'], 'title': 
> 'ValidationError', 'type': 'object'}}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type... 'Error Type', 'type': 'string'}}, 'required': ['loc', 
> 'msg', 'type'], 'title': 'ValidationError', 'type': 'object'}}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_response_model/test_tutorial001.py:138: 
> AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.session_with_dependency import 
> tutorial001 as mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             hero3_data = {
>                 "name": "Rusty-Man",
>                 "secret_name": "Tommy Sharp",
>                 "age": 48,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             assert response.status_code == 200, response.text
>             response = client.post("/heroes/", json=hero2_data)
>             assert response.status_code == 200, response.text
>             hero2 = response.json()
>             hero2_id = hero2["id"]
>             response = client.post("/heroes/", json=hero3_data)
>             assert response.status_code == 200, response.text
>             response = client.get(f"/heroes/{hero2_id}")
>             assert response.status_code == 200, response.text
>             response = client.get("/heroes/9000")
>             assert response.status_code == 404, response.text
>             response = client.get("/openapi.json")
>             data = response.json()
>             assert response.status_code == 200, response.text
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...or'}}, ...}}}} == 
> {'components'...or'}}, ...}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 
> 'type...'string'}, 'secret_name': {'title': 'Secret Name', 'type': 
> 'string'}}, 'title': 'HeroUpdate', 'type': 'object'}, ...}}} != 
> {'components': {'schemas': {'HTTPValidationError': {'properties': {'detail': 
> {'items': {...}, 'title': 'Detail', 'type...'string'}, 'secret_name': 
> {'title': 'Secret Name', 'type': 'string'}}, 'title': 'HeroUpdate', 'type': 
> 'object'}, ...}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_session_with_dependency/test_tutorial001.py:291:
>  AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.simple_hero_api import tutorial001 as 
> mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert data["name"] == hero1_data["name"]
>             assert data["secret_name"] == hero1_data["secret_name"]
>             assert data["id"] is not None
>             assert data["age"] is None
>     
>             response = client.post("/heroes/", json=hero2_data)
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert data["name"] == hero2_data["name"]
>             assert data["secret_name"] == hero2_data["secret_name"]
>             assert data["id"] == hero2_data["id"], (
>                 "Up to this point it's still possible to "
>                 "set the ID of the hero in the request"
>             )
>             assert data["age"] is None
>     
>             response = client.get("/heroes/")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>             assert len(data) == 2
>             assert data[0]["name"] == hero1_data["name"]
>             assert data[0]["secret_name"] == hero1_data["secret_name"]
>             assert data[1]["name"] == hero2_data["name"]
>             assert data[1]["secret_name"] == hero2_data["secret_name"]
>             assert data[1]["id"] == hero2_data["id"]
>     
>             response = client.get("/openapi.json")
>             data = response.json()
>     
>             assert response.status_code == 200, response.text
>     
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...eate Hero'}}}} == 
> {'components'...eate Hero'}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type... 'Error 
> Type', 'type': 'string'}}, 'required': ['loc', 'msg', 'type'], 'title': 
> 'ValidationError', 'type': 'object'}}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type... 'Error Type', 'type': 'string'}}, 'required': ['loc', 
> 'msg', 'type'], 'title': 'ValidationError', 'type': 'object'}}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_simple_hero_api/test_tutorial001.py:146:
>  AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.teams import tutorial001 as mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             hero3_data = {
>                 "name": "Rusty-Man",
>                 "secret_name": "Tommy Sharp",
>                 "age": 48,
>             }
>             response = client.get("/openapi.json")
>             data = response.json()
>             assert response.status_code == 200, response.text
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...or'}}, ...}}}} == 
> {'components'...or'}}, ...}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 'type...type': 
> 'string'}, 'team_id': {'title': 'Team Id', 'type': 'integer'}}, 'title': 
> 'HeroUpdate', 'type': 'object'}, ...}}} != {'components': {'schemas': 
> {'HTTPValidationError': {'properties': {'detail': {'items': {...}, 'title': 
> 'Detail', 'type...type': 'string'}, 'team_id': {'title': 'Team Id', 'type': 
> 'integer'}}, 'title': 'HeroUpdate', 'type': 'object'}, ...}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_teams/test_tutorial001.py:493: 
> AssertionError
> ________________________________ test_tutorial 
> _________________________________
> 
> clear_sqlmodel = None
> 
>     def test_tutorial(clear_sqlmodel):
>         from docs_src.tutorial.fastapi.update import tutorial001 as mod
>     
>         mod.sqlite_url = "sqlite://"
>         mod.engine = create_engine(
>             mod.sqlite_url, connect_args=mod.connect_args, 
> poolclass=StaticPool
>         )
>     
>         with TestClient(mod.app) as client:
>     
>             hero1_data = {"name": "Deadpond", "secret_name": "Dive Wilson"}
>             hero2_data = {
>                 "name": "Spider-Boy",
>                 "secret_name": "Pedro Parqueador",
>                 "id": 9000,
>             }
>             hero3_data = {
>                 "name": "Rusty-Man",
>                 "secret_name": "Tommy Sharp",
>                 "age": 48,
>             }
>             response = client.post("/heroes/", json=hero1_data)
>             assert response.status_code == 200, response.text
>             response = client.post("/heroes/", json=hero2_data)
>             assert response.status_code == 200, response.text
>             hero2 = response.json()
>             hero2_id = hero2["id"]
>             response = client.post("/heroes/", json=hero3_data)
>             assert response.status_code == 200, response.text
>             hero3 = response.json()
>             hero3_id = hero3["id"]
>             response = client.get(f"/heroes/{hero2_id}")
>             assert response.status_code == 200, response.text
>             response = client.get("/heroes/9000")
>             assert response.status_code == 404, response.text
>             response = client.get("/openapi.json")
>             data = response.json()
>             assert response.status_code == 200, response.text
> >           assert data == openapi_schema
> E           AssertionError: assert {'components'...or'}}, ...}}}} == 
> {'components'...or'}}, ...}}}}
> E             Omitting 3 identical items, use -vv to show
> E             Differing items:
> E             {'components': {'schemas': {'HTTPValidationError': 
> {'properties': {'detail': {'items': {...}, 'title': 'Detail', 
> 'type...'string'}, 'secret_name': {'title': 'Secret Name', 'type': 
> 'string'}}, 'title': 'HeroUpdate', 'type': 'object'}, ...}}} != 
> {'components': {'schemas': {'HTTPValidationError': {'properties': {'detail': 
> {'items': {...}, 'title': 'Detail', 'type...'string'}, 'secret_name': 
> {'title': 'Secret Name', 'type': 'string'}}, 'title': 'HeroUpdate', 'type': 
> 'object'}, ...}}}
> E             Use -v to get more diff
> 
> tests/test_tutorial/test_fastapi/test_update/test_tutorial001.py:265: 
> AssertionError
> =============================== warnings summary 
> ===============================
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_read_heroes
>   /<<PKGBUILDDIR>>/sqlmodel/orm/session.py:60: SAWarning: Class 
> SelectOfScalar will not make use of SQL compilation caching as it does not 
> set the 'inherit_cache' attribute to ``True``.  This can have significant 
> performance implications including some performance degradations in 
> comparison to prior SQLAlchemy versions.  Set this attribute to True if this 
> object can make use of the cache key generated by the superclass.  
> Alternatively, this attribute may be set to False which will disable this 
> warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
>     results = super().execute(
> 
> tests/test_advanced/test_decimal/test_tutorial001.py::test_tutorial
>   /<<PKGBUILDDIR>>/sqlmodel/orm/session.py:60: SAWarning: Dialect 
> sqlite+pysqlite does *not* support Decimal objects natively, and SQLAlchemy 
> must convert from floating point - rounding errors and other issues may 
> occur. Please consider storing Decimal numbers as strings or integers on this 
> platform for lossless storage.
>     results = super().execute(
> 
> tests/test_tutorial/test_connect/test_select/test_tutorial001_tutorial002.py::test_tutorial001
>   /<<PKGBUILDDIR>>/sqlmodel/orm/session.py:60: SAWarning: Class Select will 
> not make use of SQL compilation caching as it does not set the 
> 'inherit_cache' attribute to ``True``.  This can have significant performance 
> implications including some performance degradations in comparison to prior 
> SQLAlchemy versions.  Set this attribute to True if this object can make use 
> of the cache key generated by the superclass.  Alternatively, this attribute 
> may be set to False which will disable this warning. (Background on this 
> error at: https://sqlalche.me/e/14/cprf)
>     results = super().execute(
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED 
> tests/test_tutorial/test_fastapi/test_delete/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_limit_and_offset/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial002.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_read_one/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_relationships/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_response_model/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_session_with_dependency/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_simple_hero_api/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_teams/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_update/test_tutorial001.py::test_tutorial
> =========== 11 failed, 100 passed, 3 deselected, 3 warnings in 4.02s 
> ===========
> E: pybuild pybuild:379: test: plugin custom failed with: exit code=1: 
> PYTHONPATH=/<<PKGBUILDDIR>> python3.10 -m pytest -k 'not 
> test_create_db_and_table' 
>       rm -fr -- /tmp/dh-xdg-rundir-fstHRPdh
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/10/23/sqlmodel_0.0.6-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Source: sqlmodel
Source-Version: 0.0.8-1
Done: Sandro Tosi <mo...@debian.org>

We believe that the bug you reported is fixed in the latest version of
sqlmodel, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1022...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <mo...@debian.org> (supplier of updated sqlmodel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 23 Nov 2022 00:41:24 -0500
Source: sqlmodel
Architecture: source
Version: 0.0.8-1
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <mo...@debian.org>
Changed-By: Sandro Tosi <mo...@debian.org>
Closes: 1022413
Changes:
 sqlmodel (0.0.8-1) unstable; urgency=medium
 .
   * New upstream release
   * debian/patches/tests_valudationerror_anyof.patch
     - update tests expected data due to recent pydantic/fastapi;
       Closes: #1022413
Checksums-Sha1:
 c4dabcdc15f3af7c782a18e1e859752b19b83b0a 2227 sqlmodel_0.0.8-1.dsc
 760f4f4d0b5193c0f2d88727c382a35f82b5a9df 3740992 sqlmodel_0.0.8.orig.tar.xz
 8d902911437a9fccd6f3daf3f5d3a27e9cc854c3 3624 sqlmodel_0.0.8-1.debian.tar.xz
 1ac6d42e2c8bd7ee5af8975eeb17b46e9444988a 7854 sqlmodel_0.0.8-1_source.buildinfo
Checksums-Sha256:
 87ce33a741299021c1222871f148030f3be4bc6b403c4a7798addeadb6a185b1 2227 
sqlmodel_0.0.8-1.dsc
 f9141fd07a8d99a89fbb4af4b5955dcd05fa5cf88288ff51197698e6355d0d17 3740992 
sqlmodel_0.0.8.orig.tar.xz
 9b313e91aec1c8296c9ef4705cd4bba6a1ced7396ae881d65bc7c78dd5bc1852 3624 
sqlmodel_0.0.8-1.debian.tar.xz
 519acda1a6b78d61fa0c5a78efa29b007df8196da157c6f5ec56ed1151819ef7 7854 
sqlmodel_0.0.8-1_source.buildinfo
Files:
 2ce1d2f7f3d35c03a299a946660fd339 2227 python optional sqlmodel_0.0.8-1.dsc
 42841439f5c457116bd096bbee7e0b66 3740992 python optional 
sqlmodel_0.0.8.orig.tar.xz
 853f23d6d99c719a3ed8dfb1411ae276 3624 python optional 
sqlmodel_0.0.8-1.debian.tar.xz
 30d27c99175ee18aa961757f895c2400 7854 python optional 
sqlmodel_0.0.8-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAmN9spgACgkQh588mTgB
qU8vrBAAgI41+tkPBULHEnm+899FkHUeE9jLBjQfcKkNIL+isc9AMd5P8ZHO/E6W
84B18lkMxumHBTcj4Auxr9cnAfJb8YGQsLxaTpgWdB5ldJLg+dxK2hsKom3XSHhC
lamhUpcBZrKniQyDxNgX8nfZKYOsEKVsgSOUKilI9egkGUIftWDgrzJa07H89kA9
0iZseFx7NrcXLe8omJOSUFJGd85MP9GJx0HZg0F7FpdJk72dd0//5/ug50nMTOSd
1vSZ5Xtij0Tj+Ua0GJvq4LFPG8diDoyUgoQWZilLWfhwqjiAikou1GnqvgAllto1
D3C8FSahY/wJ96Bo167iFgXzcT/0C4gNjpsDcstfpe7ktktmvWXAgHTrcVl0A0VS
jgZcnn+QaornldwPYg5HijA1kmbnLlwUrp+oHGEGRHNE4i7KmBJAqSeR/xG6jkGR
3c6l5wlKEiGRRuah1C06YOlN/KiI1Op6ZCcI2zOFJ1WYjZFM9uFvEe9vzMo6j44R
yPZs+GBD5Gc7etvkIkE5ZXoo8gN+MkwdtWMwU52CaJ6DlY9/kiue71l9S0tROm4Z
hs+sTfEw2Dnbq1ddSDXbTNmeq3loPhx/dxI6cusqmdUkO1K4Wj5vKDyuMaWrgw88
z1Y1j8b7nio3857MSW7FG4MO3FsOLZi3HPxVc5MuFPQpr4cTYxs=
=Ll1P
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to