Skip to content

Commit

Permalink
Add additional unit test for photos
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Jan 6, 2025
1 parent febf68f commit e797ada
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies = [
"envparse==0.2.0",
"freezing-model @ https://github.com/freezingsaddles/freezing-model/archive/0.11.2.tar.gz",
"greenstalk==2.0.2",
"instagram==1.3.4",
"polyline==1.4.0",
"pytz==2024.2",
"requests==2.32.3",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_sync_import.py → tests/test_sync_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Test that we can load Config and that the configuuration is coherent."""

from freezing.sync.config import Config


Expand Down
12 changes: 12 additions & 0 deletions tests/test_sync_photos.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Test that we can load the PhotoSync class with related libraries.
This services Instagram sync, which is likely obsolete, but running
freezing-sync-photos was bombing so this test makes sure that
the libraries needed are all in place."""

from freezing.sync.data.photos import PhotoSync


def test_phtosync_instantiation():
ps = PhotoSync()
assert ps is not None

0 comments on commit e797ada

Please sign in to comment.