MCPcopy
hub / github.com/celery/celery / test_strip_prefix

Method test_strip_prefix

t/unit/backends/test_base.py:1117–1120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1115 self.b.get_key_for_group(None)
1116
1117 def test_strip_prefix(self):
1118 x = self.b.get_key_for_task('x1b34')
1119 assert self.b._strip_prefix(x) == 'x1b34'
1120 assert self.b._strip_prefix('x1b34') == 'x1b34'
1121
1122 def test_global_keyprefix(self):
1123 global_keyprefix = "test_global_keyprefix"

Callers

nothing calls this directly

Calls 2

get_key_for_taskMethod · 0.80
_strip_prefixMethod · 0.80

Tested by

no test coverage detected