mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 02:44:33 +02:00
table.has_counts_triggers property, refs #219
This commit is contained in:
parent
c265541384
commit
b4f09146d3
4 changed files with 46 additions and 4 deletions
|
|
@ -154,6 +154,14 @@ def test_triggers_and_triggers_dict(fresh_db):
|
|||
assert fresh_db.triggers_dict == expected_triggers
|
||||
|
||||
|
||||
def test_has_counts_triggers(fresh_db):
|
||||
authors = fresh_db["authors"]
|
||||
authors.insert({"name": "Frank Herbert"})
|
||||
assert not authors.has_counts_triggers
|
||||
authors.enable_counts()
|
||||
assert authors.has_counts_triggers
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"sql,expected_name,expected_using",
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue