Skip to content

Upgrade to sqlite-utils 3.0 (tests are failing) #30

@simonw

Description

@simonw
        results = beta_db["search_index"].search("run")
        if use_porter:
            assert results == [
                (
                    "dogs.db/dogs",
                    "1",
                    "Cleo",
                    "2020-08-22 04:41:33",
                    1,
                    0,
                    "running",
                    None,
                    None,
                )
            ]
        else:
>           assert results == []
E           assert <generator ob...x7f3c080a3e08> == []
E             +<generator object Table.search at 0x7f3c080a3e08>
E             -[]
E             Full diff:
E             - []
E             + <generator object Table.search at 0x7f3c080a3e08>

This was caused by a backwards incompatible change in sqlite-utils 3.0: https://sqlite-utils.readthedocs.io/en/stable/changelog.html#v3-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions