AnswerDotAI / AnswerDotAI/fasthtml

[BUG] `test_get_toaster_with_typehint` fails

Open
#835 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
7k
Forks
319
Avg merge
28m
Merged PRs (30d)
3

Description

**Describe the bug**

```python
=================================== 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 ' \n \n \n Hello, world!\n

Hello, world!

\n

{}

\n \n \n'
E + where ' \n \n \n Hello, world!\n

Hello, world!

\n

{}

\n \n \n' = .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 ' \n \n \n 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**

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.