Skip to content

Commit

Permalink
Add test for async experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 13, 2024
1 parent 5e508b5 commit 5f2591e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/test_async.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3 -m pytest
import asyncio

import pytest

from plextraktsync.sync import Sync
from plextraktsync.walker import Walker
from tests.conftest import factory


@pytest.mark.asyncio
async def test_plex_sync():
walker: Walker = factory.walker
runner: Sync = factory.sync
await runner.sync(walker, dry_run=True)


if __name__ == '__main__':
asyncio.run(test_plex_sync())

0 comments on commit 5f2591e

Please sign in to comment.