refactor handling of the python source command. document it and more limits.
This commit is contained in:
@ -276,7 +276,7 @@ TEST_F(PythonPackageTest, RunSource)
|
||||
{
|
||||
// execute python script from file
|
||||
auto output = CAPTURE_OUTPUT([&] {
|
||||
command("python xyz source ${input_dir}/run.py");
|
||||
command("python source ${input_dir}/run.py");
|
||||
});
|
||||
|
||||
ASSERT_THAT(output, HasSubstr(LOREM_IPSUM));
|
||||
@ -286,7 +286,7 @@ TEST_F(PythonPackageTest, RunSourceInline)
|
||||
{
|
||||
// execute inline python script
|
||||
auto output = CAPTURE_OUTPUT([&] {
|
||||
command("python xyz source \"\"\"\n"
|
||||
command("python source inline \"\"\"\n"
|
||||
"from __future__ import print_function\n"
|
||||
"print(2+2)\n"
|
||||
"\"\"\"");
|
||||
|
||||
Reference in New Issue
Block a user