mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Compare commits
2 commits
main
...
debug-trav
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5b0b25d21 | ||
|
|
ebc3d92690 |
2 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ def pytest_collection_modifyitems(items):
|
||||||
# Ensure test_black.py and test_inspect.py run first before any asyncio code kicks in
|
# Ensure test_black.py and test_inspect.py run first before any asyncio code kicks in
|
||||||
move_to_front(items, "test_black")
|
move_to_front(items, "test_black")
|
||||||
move_to_front(items, "test_inspect_cli")
|
move_to_front(items, "test_inspect_cli")
|
||||||
|
move_to_front(items, "test_inspect_cli_writes_to_file")
|
||||||
|
|
||||||
|
|
||||||
def move_to_front(items, test_name):
|
def move_to_front(items, test_name):
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,11 @@ def test_inspect_cli(app_client):
|
||||||
|
|
||||||
|
|
||||||
def test_inspect_cli_writes_to_file(app_client):
|
def test_inspect_cli_writes_to_file(app_client):
|
||||||
|
print(app_client)
|
||||||
|
import os
|
||||||
|
|
||||||
|
print(os.getcwd())
|
||||||
|
print(os.listdir("."))
|
||||||
runner = CliRunner()
|
runner = CliRunner()
|
||||||
result = runner.invoke(
|
result = runner.invoke(
|
||||||
cli, ["inspect", "fixtures.db", "--inspect-file", "foo.json"]
|
cli, ["inspect", "fixtures.db", "--inspect-file", "foo.json"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue