veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

214
active users

#pytest

0 posts0 participants0 posts today

A Comprehensive Guide to the Top 7 Python Testing Frameworks

tumblr.com/webappinsights/7809

Explore the top 7 Python testing frameworks that ensure code reliability, efficiency, and maintainability. This guide helps developers choose the right tools to streamline their testing process in 2025.

#PythonTesting
#TestingFrameworks
#PythonDevelopers
#SoftwareTesting
#AutomationTesting
#PythonTools
#QA
#UnitTesting
#Python2025
#TestAutomation
#CodeQuality
#DevTools
#CleanCode
#PyTest
#TDD

🌘 GitHub - richardhapb/pytest.nvim:Neovim Python 測試插件
➤ 在 Neovim 中整合 Python 測試的利器
github.com/richardhapb/pytest.
richardhapb/pytest.nvim 是一個 Neovim 插件,旨在提供整合 pytest 的 Python 測試功能。它支援在 Neovim 環境中直接執行和管理 pytest 測試,包含 Docker 支援。使用者可以透過指令 `:Pytest` 執行測試,`:PytestOutput` 檢視輸出,`:PytestAttach` 和 `:PytestDetach` 連結或解除連結測試。插件提供預設快捷鍵 `<leader>T` 執行測試,並允許使用者自訂設定和鍵盤映射。
+ 「這個插件看起來很方便,終於可以在 Neovim 裡面直接跑 pytest 了!」
+ 「Docker 支援太棒了!這樣測試不同環境的程式碼就更簡單了。」
#Neovim插件 #Python測試 #pytest

GitHubGitHub - richardhapb/pytest.nvim: Neovim plugin for Python testingNeovim plugin for Python testing. Contribute to richardhapb/pytest.nvim development by creating an account on GitHub.

What got me thinking today at work was how to test one massive set of transactions in #Django with support of #PyTest. One test is like 400 lines of code (multiple objects created and outputs created, “by design”).

Sounds like a neat challenge to tackle Monday morning.

Maybe anyone here tackled something like this? Tried splitting big test into smaller chunks and testing steps but with shared scope of variables and test database state?

Decentralizers, attention! :)

Last #deltachat releases introduced stable #p2p group membership not found in any other messenger. Members can add/remove peers also while being offline, and when everything comes online again, everyone has the same consistent membership view. We formalized and ran a simulation model using #TLA+ (invented by Leslie Lamport of vector clock fame):

github.com/chatmail/models/tre

and a complementary #pytest model with more corner cases tested here:

github.com/chatmail/models/blo

GitHubmodels/group-membership at main · chatmail/modelsFormal specifications for chatmail. Contribute to chatmail/models development by creating an account on GitHub.

Dear @ThePSF ...

having been engaged with #Python through co-creating #pytest #pypy, giving talks and trainings i appreciate that the PSF has long been a champion of diversity and inclusion! Are you aware that these days many non-USians are canceling their US travels? The German foreign ministry warns about travel to the US if you are pregnant or don't have your passport carrying a birth gender marker, then this: kpbs.org/news/border-immigrati

Maybe better update the #Pycon webpage accordingly?

pytest-mock : Mocking in pytest
Test & Code episode
testandcode.com/episodes/pytes
- Why the pytest-mock plugin is awesome
- Mocking, patching, monkeypatching
- Mocks, fakes, stubs and spies
- Why do we need these for testing
- pytest-mock as a curated wrapper around unittest.mock
#Python #pytest #mock

Test & CodeTest & Code | pytest-mock : Mocking in pytestpytest-mock is currently the #3 pytest plugin. pytest-mock is a wrapper around unittest.mock.In this episode:What is mocking, patching, and monkey patchingWhat, if any, is the difference between mo...

Hey, #python / #django people: I dimly recall a tool that uses #coverage data to only run #pytest tests that impact changed lines of code, or changed methods/logical blocks of code.

Like: "User.get_display_name was changed, and coverage data shows that these 15 tests test this method directly or indirectly, so only run those"

ring any bells? I found partialtesting (dead) and pytest-watch (spams *such* an amount of irrelevant messages in my project it's unusable, see github.com/joeyespo/pytest-wat)

GitHubLogging error when running pytest in pytest-watch · Issue #115 · joeyespo/pytest-watchBy YievCkim

This might be obvious but just in case: if #pytest reports a test failures like:


=========================== short test summary info ============================
FAILED tests/component/deb/test_import_orig.py::TestImportOrig::test_uscan - AssertionError: assert 1 == 0
+ …whatever failed …
FAILED another/failure

Then you can run that single test by invoking pytest with the bits after FAILED and before -, e.g. here:

pytest tests/component/deb/test_import_orig.py::TestImportOrig::test_uscan