Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

test: fix macos functional test #186

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/functional/test_plex_plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# standard imports
import os
import time


def _check_themes(movies):
Expand All @@ -16,7 +17,15 @@ def test_plugin_los(plugin_logs):


def test_plugin_log_file(plugin_log_file):
assert os.path.isfile(plugin_log_file), "Plugin log file not found: {}".format(plugin_log_file)
found = False
count = 0
while not found and count < 60: # plugin takes a little while to start on macOS
count += 1
if os.path.isfile(plugin_log_file):
found = True
else:
time.sleep(1)
assert found, "After 60 seconds, plugin log file not found: {}".format(plugin_log_file)


def test_plugin_log_file_exceptions(plugin_log_file):
Expand Down