MCPcopy
hub / github.com/jarun/buku / _add_rec

Function _add_rec

tests/util.py:19–21  ·  view source on GitHub ↗

Use THIS instead of db.add_rec() UNLESS you want to wait for unnecessary network requests.

(db, *args, **kw)

Source from the content-addressed store, hash-verified

17 return mock.patch('buku.fetch_data', side_effect=custom or fn)
18
19def _add_rec(db, *args, **kw):
20 """Use THIS instead of db.add_rec() UNLESS you want to wait for unnecessary network requests."""
21 return db.add_rec(*args, fetch=False, **kw)
22
23def _tagset(s):
24 return set(x for x in str(s or '').lower().split(',') if x)

Callers 15

test_bookmarklet_viewFunction · 0.90
test_create_duplicateFunction · 0.90
test_updateFunction · 0.90
test_update_redirectFunction · 0.90
test_deleteFunction · 0.90
test_env_per_pageFunction · 0.90
test_env_readonlyFunction · 0.90
test_env_localeFunction · 0.90
test_get_rec_by_idMethod · 0.90

Calls 1

add_recMethod · 0.80

Tested by 15

test_bookmarklet_viewFunction · 0.72
test_create_duplicateFunction · 0.72
test_updateFunction · 0.72
test_update_redirectFunction · 0.72
test_deleteFunction · 0.72
test_env_per_pageFunction · 0.72
test_env_readonlyFunction · 0.72
test_env_localeFunction · 0.72
test_get_rec_by_idMethod · 0.72