mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-11 19:14:10 +02:00
Swapped the order of a bunch of pytest comparisons
When I wrote this I thought constant == value was a better assertion. I no longer think that.
This commit is contained in:
parent
b4735f794a
commit
d2bcdc00c6
10 changed files with 82 additions and 82 deletions
|
|
@ -54,18 +54,18 @@ def test_detect_fts_similar_tables(fresh_db, reverse_order):
|
|||
|
||||
|
||||
def test_tables(existing_db):
|
||||
assert 1 == len(existing_db.tables)
|
||||
assert "foo" == existing_db.tables[0].name
|
||||
assert len(existing_db.tables) == 1
|
||||
assert existing_db.tables[0].name == "foo"
|
||||
|
||||
|
||||
def test_views(fresh_db):
|
||||
fresh_db.create_view("foo_view", "select 1")
|
||||
assert 1 == len(fresh_db.views)
|
||||
assert len(fresh_db.views) == 1
|
||||
view = fresh_db.views[0]
|
||||
assert isinstance(view, View)
|
||||
assert "foo_view" == view.name
|
||||
assert "<View foo_view (1)>" == repr(view)
|
||||
assert {"1": str} == view.columns_dict
|
||||
assert view.name == "foo_view"
|
||||
assert repr(view) == "<View foo_view (1)>"
|
||||
assert view.columns_dict == {"1": str}
|
||||
|
||||
|
||||
def test_count(existing_db):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue