Skip to content

Commit

Permalink
Issue with doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjosephhorton committed Sep 17, 2024
1 parent e7b4cac commit 33f84cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edsl/scenarios/ScenarioImageMixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def add_image(self, image_path: str):
>>> from edsl.scenarios.Scenario import Scenario
>>> s = Scenario({"food": "wood chips"})
>>> s.add_image(Scenario.example_image())
Scenario({'food': 'wood chips', 'file_path': '...', 'encoded_image': '...'})
Scenario({'food': 'wood chips', 'logo': ...})
"""
new_scenario = self.from_image(image_path)
return self + new_scenario
Expand All @@ -33,7 +33,7 @@ def from_image(cls, image_path: str) -> "Scenario":
>>> from edsl.scenarios.Scenario import Scenario
>>> s = Scenario.from_image(Scenario.example_image())
>>> s
Scenario({'file_path': '...', 'encoded_image': '...'})
Scenario({'logo': ...})
"""

if image_path.startswith("http://") or image_path.startswith("https://"):
Expand Down

0 comments on commit 33f84cd

Please sign in to comment.