[PR #6143] [MERGED] Mod block entity test: stub BlockEntities::has_mods (main's verify) #6676

Closed
opened 2026-11-03 06:24:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6143
Author: @ludovic111
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/mod-be-test-has-mods


📝 Commits (1)

  • 830cdd2 Mod block entity test: the stub has has_mods, as BlockEntities does since #6117

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 tests/test_mod_block_entity_any_template.py (+1 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

#6117 merged with has_mod_block_entity asking BlockEntities::has_mods() first (no lookup on each block change until a mod block entity exists). tests/test_mod_block_entity_any_template.py compiles that method against a stub Entities that had no has_mods, so the test fails on main and every PR's verify with it (E0599).

The stub gets has_mods (any BlockEntity::Mod in the map).

cd tests && python3 -m unittest test_mod_block_entity_any_template: OK (2 Rust tests pass).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6143 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/mod-be-test-has-mods` --- ### 📝 Commits (1) - [`830cdd2`](https://github.com/horizon-rust/horizon/commit/830cdd2647c7b55b3bc9aeccc56a7bbef9ca5bd6) Mod block entity test: the stub has has_mods, as BlockEntities does since #6117 ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_mod_block_entity_any_template.py` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. #6117 merged with `has_mod_block_entity` asking `BlockEntities::has_mods()` first (no lookup on each block change until a mod block entity exists). `tests/test_mod_block_entity_any_template.py` compiles that method against a stub `Entities` that had no `has_mods`, so the test fails on main and every PR's verify with it (E0599). The stub gets `has_mods` (any `BlockEntity::Mod` in the map). `cd tests && python3 -m unittest test_mod_block_entity_any_template`: OK (2 Rust tests pass). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:24:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6676
No description provided.