Skip to content

Commit

Permalink
🤪 Make dashed of length 50
Browse files Browse the repository at this point in the history
Issue: #10
  • Loading branch information
gopinath-langote committed May 1, 2019
1 parent e3bfa9e commit 5acd68d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions 1build
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def run(build_file_name, arguments):


def execute(command):
print("---------------------------------------------------")
print("--------------------------------------------------")
print ("Name: " + command.name)
print ("Command: " + command.cmd)
print("---------------------------------------------------")
print("--------------------------------------------------")
os.system(command.cmd)


Expand All @@ -91,7 +91,7 @@ def __parse_project_config__():
except:
raise ValueError(
"Error in parsing " + __buildFileName__() + " config file. Make sure file is in correct format.\nSample format is:\n\n" +
"---------------------------------------------------\n" + sample_yaml_file() + "\n---------------------------------------------------\n"
"--------------------------------------------------\n" + sample_yaml_file() + "\n--------------------------------------------------\n"
)
else:
raise ValueError("No " + __buildFileName__() + " file found in current directory.")
Expand Down
8 changes: 4 additions & 4 deletions tests/test_1build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
def test_build_successful_command(capsys):
build.run("tests/build_file.yaml", ['file_name', 'build'])
captured = capsys.readouterr()
expected_message = "---------------------------------------------------\n" \
expected_message = "--------------------------------------------------\n" \
"Name: build\n" \
"Command: ls\n" \
"---------------------------------------------------\n"
"--------------------------------------------------\n"
assert expected_message in captured.out


Expand All @@ -22,12 +22,12 @@ def test_should_fail_with_invalid_file_message_if_file_is_not_in_correct_yaml_fo

invalid_file_error_message = "Error in parsing 'tests/invalid_yaml_file.yaml' config file. Make sure file is in correct format.\n" \
"Sample format is:\n\n" \
"---------------------------------------------------\n" \
"--------------------------------------------------\n" \
"project: Sample Project\n" \
"commands:\n" \
" - build: ./gradlew clean build\n" \
" - lint: ./gradlew spotlessApply\n" \
"---------------------------------------------------"
"--------------------------------------------------"

assert invalid_file_error_message in captured.out

Expand Down

0 comments on commit 5acd68d

Please sign in to comment.