Skip to content

Commit 8301695

Browse files
committed
Applied Black
1 parent 1fce578 commit 8301695

File tree

1 file changed

+83
-9
lines changed

1 file changed

+83
-9
lines changed

tests/test_csvs_to_sqlite.py

+83-9
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ def test_fixed_column():
384384
"1",
385385
"--fixed-column-float",
386386
"col4",
387-
"1.1"
388-
]
387+
"1.1",
388+
],
389389
)
390390
assert result.exit_code == 0
391391
assert result.output.strip().endswith("Created test.db from 1 CSV file")
@@ -405,12 +405,84 @@ def test_fixed_column():
405405
] == list(conn.execute("PRAGMA table_info(test)"))
406406
rows = conn.execute("select * from test").fetchall()
407407
assert [
408-
("Yolo", 100001, "President", None, "LIB", "Gary Johnson", 41, "foo", "bar", 1, 1.1),
409-
("Yolo", 100001, "President", None, "PAF", "Gloria Estela La Riva", 8, "foo", "bar", 1, 1.1),
410-
("Yolo", 100001, "Proposition 51", None, None, "No", 398, "foo", "bar", 1, 1.1),
411-
("Yolo", 100001, "Proposition 51", None, None, "Yes", 460, "foo", "bar", 1, 1.1),
412-
("Yolo", 100001, "State Assembly", 7, "DEM", "Kevin McCarty", 572, "foo", "bar", 1, 1.1),
413-
("Yolo", 100001, "State Assembly", 7, "REP", "Ryan K. Brown", 291, "foo", "bar", 1, 1.1),
408+
(
409+
"Yolo",
410+
100001,
411+
"President",
412+
None,
413+
"LIB",
414+
"Gary Johnson",
415+
41,
416+
"foo",
417+
"bar",
418+
1,
419+
1.1,
420+
),
421+
(
422+
"Yolo",
423+
100001,
424+
"President",
425+
None,
426+
"PAF",
427+
"Gloria Estela La Riva",
428+
8,
429+
"foo",
430+
"bar",
431+
1,
432+
1.1,
433+
),
434+
(
435+
"Yolo",
436+
100001,
437+
"Proposition 51",
438+
None,
439+
None,
440+
"No",
441+
398,
442+
"foo",
443+
"bar",
444+
1,
445+
1.1,
446+
),
447+
(
448+
"Yolo",
449+
100001,
450+
"Proposition 51",
451+
None,
452+
None,
453+
"Yes",
454+
460,
455+
"foo",
456+
"bar",
457+
1,
458+
1.1,
459+
),
460+
(
461+
"Yolo",
462+
100001,
463+
"State Assembly",
464+
7,
465+
"DEM",
466+
"Kevin McCarty",
467+
572,
468+
"foo",
469+
"bar",
470+
1,
471+
1.1,
472+
),
473+
(
474+
"Yolo",
475+
100001,
476+
"State Assembly",
477+
7,
478+
"REP",
479+
"Ryan K. Brown",
480+
291,
481+
"foo",
482+
"bar",
483+
1,
484+
1.1,
485+
),
414486
] == rows
415487

416488

@@ -701,4 +773,6 @@ def test_if_cog_needs_to_be_run():
701773
result = Cog().main(["cog", str(readme)])
702774
output = sys.stdout.getvalue()
703775
sys.stdout = _stdout
704-
assert output == readme.read_text()
776+
assert (
777+
output == readme.read_text()
778+
), "Run 'cog -r README.md' to update help in README"

0 commit comments

Comments
 (0)