mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-24 21:38:22 +00:00
19 lines
631 B
Python
19 lines
631 B
Python
"""Process Model."""
|
|
from flask.app import Flask
|
|
from flask.testing import FlaskClient
|
|
from tests.spiffworkflow_backend.helpers.base_test import BaseTest
|
|
|
|
from spiffworkflow_backend.services.git_service import GitService
|
|
|
|
|
|
class TestGitService(BaseTest):
|
|
|
|
def test_strips_output_of_stdout_from_command(
|
|
self,
|
|
app: Flask,
|
|
client: FlaskClient,
|
|
with_db_and_bpmn_file_cleanup: None,
|
|
) -> None:
|
|
output = GitService.run_shell_command_to_get_stdout(["echo", ' This output should not end in space or newline \n'])
|
|
assert output == 'This output should not end in space or newline'
|