Comments (1)
The test already fails:
tmpdir = local('/private/var/folders/wr/hn3206rs1yzgq3r49bz8nvnh0000gn/T/pytest-of-simon/pytest-210/test_without_pk0')
def test_without_pk(tmpdir):
db_path = tmpdir / "db.db"
> assert (
0
== CliRunner()
.invoke(cli.cli, [str(db_path), "items", "-"], input=TEST_YAML)
.exit_code
)
E AssertionError: assert 0 == 1
E + where 1 = <Result PrimaryKeyRequired('upsert() requires a pk')>.exit_code
E + where <Result PrimaryKeyRequired('upsert() requires a pk')> = <bound method CliRunner.invoke of <click.testing.CliRunner object at 0x10a08a518>>(<Command cli>, ['/private/var/folders/wr/hn3206rs1yzgq3r49bz8nvnh0000gn/T/pytest-of-simon/pytest-210/test_without_pk0/db.db', 'items', '-'], input='\n- name: datasette-cluster-map\n url: https://github.com/simonw/datasette-cluster-map\n- name: datasette-vega\n url: https://github.com/simonw/datasette-vega\n nested_with_date:\n - title: Hello\n date: 2010-01-01\n')
E + where <bound method CliRunner.invoke of <click.testing.CliRunner object at 0x10a08a518>> = <click.testing.CliRunner object at 0x10a08a518>.invoke
E + where <click.testing.CliRunner object at 0x10a08a518> = CliRunner()
E + and <Command cli> = cli.cli
tests/test_cli.py:32: AssertionError
from yaml-to-sqlite.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yaml-to-sqlite.