mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00
doc: Update readme
This commit is contained in:
parent
a087bf0c28
commit
77ce0490f4
33
.github/workflows/testing.yml
vendored
Normal file
33
.github/workflows/testing.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Test Site Modules and OS Path
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, master, develop ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, master, develop ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
|
|
||||||
|
- name: Run loadSearchApi test
|
||||||
|
run: |
|
||||||
|
PYTHONPATH=$PYTHONPATH:$(pwd) python -m Test.Util.loadSearchApi
|
||||||
|
|
||||||
|
- name: Run osPath test
|
||||||
|
run: |
|
||||||
|
PYTHONPATH=$PYTHONPATH:$(pwd) python -m Test.Util.osPath
|
@ -1,5 +1,5 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://i.ibb.co/v6RnT0wY/s2.jpg" alt="Project Logo" width="700"/>
|
<img src="https://i.ibb.co/v6RnT0wY/s2.jpg" alt="Project Logo" width="600"/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
@ -32,6 +32,7 @@
|
|||||||
# 📋 Table of Contents
|
# 📋 Table of Contents
|
||||||
|
|
||||||
- 🔄 [Update Domains](#update-domains)
|
- 🔄 [Update Domains](#update-domains)
|
||||||
|
- 🌐 [Available Sites](https://arrowar.github.io/StreamingDirectory/)
|
||||||
- 🛠️ [Installation](#installation)
|
- 🛠️ [Installation](#installation)
|
||||||
- 📦 [PyPI Installation](#1-pypi-installation)
|
- 📦 [PyPI Installation](#1-pypi-installation)
|
||||||
- 🔄 [Automatic Installation](#2-automatic-installation)
|
- 🔄 [Automatic Installation](#2-automatic-installation)
|
||||||
@ -72,6 +73,9 @@
|
|||||||
<a href="https://github.com/Arrowar/StreamingCommunity/releases/latest/download/StreamingCommunity_linux_previous">
|
<a href="https://github.com/Arrowar/StreamingCommunity/releases/latest/download/StreamingCommunity_linux_previous">
|
||||||
<img src="https://img.shields.io/badge/-Linux Previous-gray.svg?style=for-the-badge&logo=linux" alt="Linux Previous">
|
<img src="https://img.shields.io/badge/-Linux Previous-gray.svg?style=for-the-badge&logo=linux" alt="Linux Previous">
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/Arrowar/StreamingCommunity/releases">
|
||||||
|
<img src="https://img.shields.io/badge/-All Versions-lightgrey.svg?style=for-the-badge&logo=github" alt="All Versions">
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## 1. PyPI Installation
|
## 1. PyPI Installation
|
||||||
|
@ -143,7 +143,7 @@ def initialize():
|
|||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# Trending tmbd
|
# Trending tmbd
|
||||||
"""if SHOW_TRENDING:
|
if SHOW_TRENDING:
|
||||||
print()
|
print()
|
||||||
tmdb.display_trending_films()
|
tmdb.display_trending_films()
|
||||||
tmdb.display_trending_tv_shows()
|
tmdb.display_trending_tv_shows()
|
||||||
@ -152,7 +152,7 @@ def initialize():
|
|||||||
try:
|
try:
|
||||||
git_update()
|
git_update()
|
||||||
except:
|
except:
|
||||||
console.log("[red]Error with loading github.")"""
|
console.log("[red]Error with loading github.")
|
||||||
|
|
||||||
def restart_script():
|
def restart_script():
|
||||||
"""Riavvia lo script con gli stessi argomenti della riga di comando."""
|
"""Riavvia lo script con gli stessi argomenti della riga di comando."""
|
||||||
|
37
Test/Util/loadSearchApi.py
Normal file
37
Test/Util/loadSearchApi.py
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# 22.03.25
|
||||||
|
|
||||||
|
# Fix import
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
|
||||||
|
sys.path.append(src_path)
|
||||||
|
|
||||||
|
|
||||||
|
# Import
|
||||||
|
import unittest
|
||||||
|
import logging
|
||||||
|
from StreamingCommunity.global_search import load_search_functions
|
||||||
|
|
||||||
|
class TestLoadSearchFunctions(unittest.TestCase):
|
||||||
|
def test_load_search_functions_no_exceptions(self):
|
||||||
|
try:
|
||||||
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
|
||||||
|
# Call the function to be tested
|
||||||
|
loaded_functions = load_search_functions()
|
||||||
|
|
||||||
|
# Verify that at least some modules were loaded
|
||||||
|
self.assertTrue(len(loaded_functions) > 0, "No modules were loaded")
|
||||||
|
|
||||||
|
# Print successfully loaded modules
|
||||||
|
print("\nSuccessfully loaded modules:")
|
||||||
|
for module_name, (_, use_for) in loaded_functions.items():
|
||||||
|
print(f"- {module_name} (type: {use_for})")
|
||||||
|
|
||||||
|
print(f"\nTotal modules loaded: {len(loaded_functions)}")
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
self.fail(f"Error during module loading: {str(e)}")
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
x
Reference in New Issue
Block a user