import pytest from chemistry import calculate_lye def test_chemistry_engine(): recipe = {"coconut oil": 150, "olive oil": 350} result = calculate_lye(recipe, superfat=5) assert isinstance(result, dict) assert 'naoh_g' in result def test_ollama_optional(): pytest.importorskip("ollama") import ollama response = ollama.chat( model="llama3.2:latest", messages=[{"role": "user", "content": "Say hello in one sentence."}] ) assert 'message' in response def test_hf_login_optional(): pytest.importorskip("huggingface_hub") from huggingface_hub import whoami user = whoami() assert 'name' in user