Skip to content

Commit

Permalink
Changed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlota de la Vega committed Jun 1, 2024
1 parent fab854c commit ba7d012
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_execute_command_generate_number_success(self):
"command": "generate_number",
"text": "5"
}
expected_file_path = "./data/nums/drawn_number_5.png"
expected_file_path = "data/nums/drawn_number_5.png"
handler = Handler(MagicMock())

# Act
Expand All @@ -21,10 +21,9 @@ def test_execute_command_generate_number_success(self):
# Assert
self.assertTrue(os.path.exists(expected_file_path))

# Clean up
# Cleanup
os.remove(expected_file_path)


def test_execute_command_generate_number_error(self):
# Arrange
request = {
Expand Down

0 comments on commit ba7d012

Please sign in to comment.