tconbeer / harlequin

The SQL IDE for Your Terminal.
https://harlequin.sh
MIT License
3.3k stars 76 forks source link

Information about testing #550

Closed mirpedrol closed 1 month ago

mirpedrol commented 1 month ago

Hi @tconbeer!

I am working on adding a TUI to our package nf-core/tools, currently implementing the snapshot tests.

I see your tests are asyncio events and then you are able to generate a snapshot with [app_snapshot()](https://github.com/tconbeer/harlequin/blob/974d8f7b922aa1b4b4b4d95f4309c67a7b060121/tests/functional_tests/test_app.py#L62). Could you point me to how to use this same approach? When I try to add it to my tests I get an error fixture 'app_snapshot' not found

Thank you very much for your help!