mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-19 15:04:10 +02:00
Run tests against Ubuntu, macOS and Windows
With tests fixes for Windows, thanks to @nieuwenhoven in #225. Closes #232
This commit is contained in:
parent
320f3ac33a
commit
f51a1f6c3c
3 changed files with 10 additions and 7 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from sqlite_utils import cli, Database
|
||||
from click.testing import CliRunner
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
|
||||
|
|
@ -42,7 +43,7 @@ def test_insert_files():
|
|||
one, two, three = (
|
||||
rows_by_path["one.txt"],
|
||||
rows_by_path["two.txt"],
|
||||
rows_by_path["nested/three.txt"],
|
||||
rows_by_path[os.path.join("nested", "three.txt")],
|
||||
)
|
||||
assert {
|
||||
"content": b"This is file one",
|
||||
|
|
@ -64,7 +65,7 @@ def test_insert_files():
|
|||
"content": b"Three is nested",
|
||||
"md5": "12580f341781f5a5b589164d3cd39523",
|
||||
"name": "three.txt",
|
||||
"path": "nested/three.txt",
|
||||
"path": os.path.join("nested", "three.txt"),
|
||||
"sha256": "6dd45aaaaa6b9f96af19363a92c8fca5d34791d3c35c44eb19468a6a862cc8cd",
|
||||
"size": 15,
|
||||
}.items() <= three.items()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue