Skip to content

Commit

Permalink
added basic temporary test
Browse files Browse the repository at this point in the history
  • Loading branch information
AvidEslami committed May 26, 2023
1 parent 579feea commit 8634267
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions openadapt/temp_crop_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import fire
from openadapt.crud import get_latest_recording, get_window_events
from openadapt.utils import configure_logging, get_strategy_class_by_name
from openadapt.models import Screenshot


def crop_test():
recording = get_latest_recording()
window_event = get_window_events(recording)[0]
screenshot = Screenshot.take_screenshot()
screenshot.image.show()
screenshot.crop_active_window(window_event)
screenshot.image.show()


if __name__ == "__main__":
fire.Fire(crop_test)

0 comments on commit 8634267

Please sign in to comment.