mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
test(models): remove stale test_custom_prefix test
The test called subject_for_event(event, prefix="myapp.events") but the prefix parameter was removed from the API. The prefix functionality was intentionally removed - subjects now always use the "central." prefix hardcoded in the function. Delete the test rather than re-add the parameter. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2d874172e3
commit
22c6b95eaf
1 changed files with 0 additions and 5 deletions
|
|
@ -98,11 +98,6 @@ class TestSubjectForEvent:
|
||||||
subject = subject_for_event(event)
|
subject = subject_for_event(event)
|
||||||
assert subject == "central.wx.alert.us.unknown"
|
assert subject == "central.wx.alert.us.unknown"
|
||||||
|
|
||||||
def test_custom_prefix(self, sample_event: Event) -> None:
|
|
||||||
"""Custom prefix is used in subject."""
|
|
||||||
subject = subject_for_event(sample_event, prefix="myapp.events")
|
|
||||||
assert subject == "myapp.events.alert.us.id.county.ada"
|
|
||||||
|
|
||||||
|
|
||||||
class TestCloudEventsWire:
|
class TestCloudEventsWire:
|
||||||
"""Tests for CloudEvents wire format."""
|
"""Tests for CloudEvents wire format."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue