Skip to content

Ban tautological default-value tests - #9

Merged
fangpenlin merged 1 commit into
masterfrom
cursor/no-tautological-tests-9bbb
Sep 13, 2026
Merged

fangpenlin merged 1 commit into
masterfrom
cursor/no-tautological-tests-9bbb

Conversation

@fangpenlin

Copy link
Copy Markdown
Contributor

Port of BeanHub’s shared-feature Ban tautological default-value tests.

Do not add tests that only assert a default host, constant, or dump equals the literal in source.

This PR:

  • Documents the rule in AGENTS.md
  • Rewrites default_hosts_are_production so empty env must not silently point at staging, and compares load() to the named production constants instead of restating https://api.amendable.io

Source: https://github.com/LaunchPlatform/beanhub-web/pull/172

Open in Web Open in Cursor 

Empty env must not silently point at staging. Compare load() to the
named production constants instead of restating the hostname literal.
Document the same rule in AGENTS.md.

Co-authored-by: Fang-Pen Lin <hello@fangpenlin.com>
@fangpenlin
fangpenlin marked this pull request as ready for review September 13, 2026 17:36
@fangpenlin
fangpenlin merged commit 912550c into master Sep 13, 2026
2 checks passed
@fangpenlin
fangpenlin deleted the cursor/no-tautological-tests-9bbb branch September 13, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants