Try a new trick on Bite and add it to TRICKS.md

Open Beginner friendly
#204 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
testing-qa

Research direction

Start with tests/test_tricks.py, especially test_every_test_skipped_is_no_tests_not_a_gap, and use its helpers to build a tiny repo for one listed trick. Run the relevant test with the setup in CONTRIBUTING.md and check Bite’s answer. If Bite flags the trick, add a test and a brief note to the “Not fooled” paragraph in TRICKS.md; if it is fooled, follow the linked report path. Comment with the trick number to claim it.

Written by the indexing model from the issue text.

Description

good first issue

What happens: TRICKS.md lists tricks we threw at Bite. Under "Not fooled" are the ones it already gets right, like a test that swallows its own failure with try/except. There are many tricks nobody has tried yet.

What we'd like: pick one trick below, build it as a tiny repo, and see what Bite says. Nobody knows yet which way these go, which is the fun part.

  1. The fix's only test is marked @unittest.expectedFailure (or @pytest.mark.xfail).
  2. The test swaps the fixed function for a fake (monkeypatch.setattr(shop, "total", lambda p: 4.0)) and then checks the fake.
  3. The test's assert sits inside if sys.version_info < (3, 0):, so it never runs.
  4. The test checks the fix with assert total([0.1, 0.2]) == 0.3 or True.

The honest answer for all four: no test really checks the fix, so Bite should say ⚠️.

Where to look: tests/test_tricks.py. Its helpers make(), write(), commit() and only() build a tiny repo and give you Bite's answer for the newest commit in a few lines. Copy a short one, like test_every_test_skipped_is_no_tests_not_a_gap, and change the files it writes.

Done when:

  • If Bite gets it right: your trick is a new test in tests/test_tricks.py that checks Bite's answer, and a few words for it are added to the "Not fooled" paragraph in TRICKS.md. Comment here with the number you're taking (1-4) so two people don't race for the same one.
  • If Bite gets it wrong: you fooled it! Open an issue with the I fooled Bite form instead (see #156), and you go in the TRICKS.md tables with your name.

New here? CONTRIBUTING.md has setup (pip install -e .[test], then python -m pytest). Comment to claim it.


Generated by Claude Code

Dominant language
Python
Stars
1
Forks
5
Avg merge
1h 19m
Merged PRs (30d)
191

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from connabyss/bite

All issues in connabyss/bite

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.