Skip to content

[BUG] test_get_toaster_with_typehint fails #835

@doronbehar

Description

@doronbehar

Describe the bug

=================================== FAILURES ===================================
________________________ test_get_toaster_with_typehint ________________________

    def test_get_toaster_with_typehint():
        res = cli.get('/see-toast-with-typehint', follow_redirects=False)
>       assert 'Toast get' in res.text
E       assert 'Toast get' in ' <!doctype html>\n <html>\n   <head>\n     <title>Hello, world!</title>\n     <link rel="canonical" href="https://tes...ad>\n   <body>\n<main class="container">       <h1>Hello, world!</h1>\n       <p>{}</p>\n</main>   </body>\n </html>\n'
E        +  where ' <!doctype html>\n <html>\n   <head>\n     <title>Hello, world!</title>\n     <link rel="canonical" href="https://tes...ad>\n   <body>\n<main class="container">       <h1>Hello, world!</h1>\n       <p>{}</p>\n</main>   </body>\n </html>\n' = <Response [200 OK]>.text

tests/test_toaster.py:50: AssertionError
=========================== short test summary info ============================
FAILED tests/test_toaster.py::test_get_toaster_with_typehint - assert 'Toast get' in ' <!doctype html>\n <html>\n   <head>\n     <title>He...
========================= 1 failed, 4 passed in 0.36s ==========================

Minimal Reproducible Example

I'm simply running the tests with pytest with Nix. If you cannot reproduce, I guess we'll have to dive deeper.

Expected behavior

No failure.

Environment Information

  • fastlite version: 0.2.4
  • fastcore version: 1.12.16
  • fasthtml version: 0.12.47

Confirmation

  • I have read the FAQ (https://docs.fastht.ml/explains/faq.html)
  • I have provided a minimal reproducible example
  • I have included the versions of fastlite, fastcore, and fasthtml
  • I understand that this is a volunteer open source project with no commercial support.

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