Added repl command to CLI; closes #472

This commit is contained in:
Rhet Turnbull
2021-06-19 17:31:02 -07:00
parent ca8397bc97
commit 5d7dea3fc3
4 changed files with 78 additions and 2 deletions

View File

@@ -6457,6 +6457,8 @@ def test_export_directory_template_function():
with runner.isolated_filesystem():
with open("foo.py", "w") as f:
f.writelines(["def foo(photo, **kwargs):\n"," return 'foo/bar'"])
tempdir = os.getcwd()
result = runner.invoke(
cli,
[
@@ -6464,10 +6466,11 @@ def test_export_directory_template_function():
"--db",
os.path.join(cwd, PHOTOS_DB_15_7),
".",
"-V",
"--uuid",
CLI_EXPORT_UUID,
"--directory",
"{function:foo.py::foo}"
"{function:"+f"{tempdir}" + "/foo.py::foo}"
],
)
assert result.exit_code == 0