MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / test_database_path

Function test_database_path

tools/shell/test/test_shell_flags.py:9–18  ·  view source on GitHub ↗
(temp_db)

Source from the content-addressed store, hash-verified

7
8
9def test_database_path(temp_db) -> None:
10 # no database path
11 test = ShellTest()
12 result = test.run()
13 result.check_stdout("Opening the database under in-memory mode.")
14
15 # valid database path
16 test = ShellTest().add_argument(temp_db).statement('RETURN "databases rule" AS a;')
17 result = test.run()
18 result.check_stdout("databases rule")
19
20
21@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 5

runMethod · 0.95
ShellTestClass · 0.90
check_stdoutMethod · 0.80
statementMethod · 0.80
add_argumentMethod · 0.80

Tested by

no test coverage detected