MCPcopy
hub / github.com/beetbox/beets / test_store_fixed_field

Method test_store_fixed_field

test/test_dbcore.py:281–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

279 assert len(rows) == 1
280
281 def test_store_fixed_field(self):
282 model = ModelFixture1()
283 model.add(self.db)
284 model.field_one = 123
285 model.store()
286 row = self.db._connection().execute("select * from test").fetchone()
287 assert row["field_one"] == 123
288
289 def test_revision(self):
290 old_rev = self.db.revision

Callers

nothing calls this directly

Calls 4

ModelFixture1Class · 0.85
_connectionMethod · 0.80
addMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected