Add pytest and gitlab-ci for container

This commit is contained in:
Kylian Schmidt
2025-09-08 14:47:38 +02:00
parent 9e59d06796
commit 802fee1337
10 changed files with 263 additions and 217 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class GalleryItem:
class Config:
"""
Main configuration class that aggregates all gallery settings.
Provides backward compatibility properties and methods for loading
configuration from YAML files.
"""
+2 -2
View File
@@ -80,12 +80,12 @@ def get_metadata_file_path(folder_path: Path) -> str:
"""
# Preferred order: YAML first, then JSON
preferred_files = ['metadata.yaml', 'metadata.yml', 'metadata.json']
for filename in preferred_files:
metadata_path = folder_path / filename
if metadata_path.exists():
return str(metadata_path)
# If no file exists, suggest metadata.yaml (preferred format)
return str(folder_path / 'metadata.yaml')