« * K @realpython.com

Real Python @realpython.com

2026-11-25 17:05 UTC

3. When Claude Code writes unittest tests, it also creates an empty tests/__init__.py. Don't delete it. unittest only looks for tests in folders that are importable packages. Without that file, python -m unittest finds nothing and reports NO TESTS RAN.

A reply in a thread.

0 likes, 0 reposts, 1 replies

3 Next post4 More from @realpython.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup