preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Can't locate object method "info" via package "Yancy::Model::Schema" #140

Open eserte opened 3 years ago

eserte commented 3 years ago

On some of my smokers the test suite fails:

x-view is deprecated and will be removed in v2. Use Yancy::Model or your database's CREATE VIEW instead. at /usr/home/cpansand/.cpan/build/2021120405/Yancy-1.085-1/blib/lib/Yancy/Model/Schema.pm line 283.
t/api.t ...................... ok
Can't locate object method "info" via package "Yancy::Model::Schema" at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/Yancy/Plugin/OpenAPI.pm line 239.
t/app.t ...................... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
DBIx::Class::Storage::DBI::SQLite::_dbi_attrs_for_bind(): Non-integer value supplied for column 'me.id' despite the integer datatype at /usr/home/cpansand/.cpan/build/2021120405/Yancy-1.085-1/blib/lib/Yancy/Backend/Dbic.pm line 174
datatype mismatch: bind param (0) DOES_NOT_EXIST as integer at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/DBIx/Class/Storage/DBI.pm line 1958.
datatype mismatch: bind param (0) DOES_NOT_EXIST as integer at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/DBIx/Class/Storage/DBI.pm line 1958.
datatype mismatch: bind param (0) DOES_NOT_EXIST as integer at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/DBIx/Class/Storage/DBI.pm line 1958.
datatype mismatch: bind param (0) DOES_NOT_EXIST as integer at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/DBIx/Class/Storage/DBI.pm line 1958.
datatype mismatch: bind param (0) DOES_NOT_EXIST as integer at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/DBIx/Class/Storage/DBI.pm line 1958.
datatype mismatch: bind param (0) DOES_NOT_EXIST as integer at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/DBIx/Class/Storage/DBI.pm line 1958.
t/backend/dbic.t ............. ok
...
        #   Failed test 'error message is useful'
        #   at t/plugin/editor.t line 141.
        #                   'Can't locate object method "info" via package "Yancy::Model::Schema" at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/Yancy/Plugin/OpenAPI.pm line 239.
        # '
        #     doesn't match '(?^u:Column "[^']+" in x-list-columns does not exist)'

        #   Failed test 'error message is useful'
        #   at t/plugin/editor.t line 162.
        #                   'Can't locate object method "info" via package "Yancy::Model::Schema" at /usr/perl5.32.1Dp/lib/site_perl/5.32.1/Yancy/Plugin/OpenAPI.pm line 239.
        # '
        #     doesn't match '(?^u:Column "[^"]+" in x-list-columns template does not exist)'
        # Looks like you failed 2 tests of 4.

    #   Failed test 'x-list-columns that don't exist'
    #   at t/plugin/editor.t line 164.
    # Looks like you failed 1 test of 1.

#   Failed test 'config sanity checks'
#   at t/plugin/editor.t line 166.
# Looks like you failed 1 test of 4.
t/plugin/editor.t ............ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 
...