Fixed Docker

- Update Dockerfile, docker-compose
- fixed app instructions not working
- fixed json ouput sanification
- added tests for predictor
This commit is contained in:
2025-09-26 12:45:05 +02:00
parent d8ed299724
commit 3e746cdd45
9 changed files with 170 additions and 88 deletions

View File

@@ -30,6 +30,15 @@ def pytest_configure(config):
config.addinivalue_line(
"markers", "cryptocompare: marks tests that require CryptoCompare credentials"
)
config.addinivalue_line(
"markers", "gemini: marks tests that use Gemini model"
)
config.addinivalue_line(
"markers", "ollama_gpt: marks tests that use Ollama GPT model"
)
config.addinivalue_line(
"markers", "ollama_qwen: marks tests that use Ollama Qwen model"
)
def pytest_collection_modifyitems(config, items):
@@ -42,3 +51,10 @@ def pytest_collection_modifyitems(config, items):
# Aggiungi marker 'slow' ai test che potrebbero essere lenti
if "overview" in item.name.lower() or "analysis" in item.name.lower():
item.add_marker(pytest.mark.slow)
if "gemini" in item.name.lower():
item.add_marker(pytest.mark.gemini)
if "ollama_gpt" in item.name.lower():
item.add_marker(pytest.mark.ollama_gpt)
if "ollama_qwen" in item.name.lower():
item.add_marker(pytest.mark.ollama_qwen)