Reviewed-on: #14 Co-authored-by: Mathias Scheider <mathias2784@web.de>
This commit was merged in pull request #14.
This commit is contained in:
+5
-2
@@ -58,8 +58,11 @@ def test_keywords_command_success(mock_photo_logic, dummy_file):
|
||||
|
||||
assert result.exit_code == 0
|
||||
assert "Processing: " in result.stdout
|
||||
assert "Caption: A beautiful test image" in result.stdout
|
||||
assert "Tags: test, mock, image" in result.stdout
|
||||
# The result is printed as a raw dictionary string
|
||||
assert (
|
||||
"{'caption': 'A beautiful test image', 'tags': ['test', 'mock', 'image']}"
|
||||
in result.stdout
|
||||
)
|
||||
|
||||
|
||||
def test_keywords_command_file_not_found():
|
||||
|
||||
Reference in New Issue
Block a user