mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
25fbe356b4
This PR upgrades community to a recent version of mypy. It inserts type: ignore on all existing failures.
16 lines
387 B
Python
16 lines
387 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
from langchain_community.llms.moonshot import Moonshot
|
|
|
|
os.environ["MOONSHOT_API_KEY"] = "key"
|
|
|
|
|
|
@pytest.mark.requires("openai")
|
|
def test_moonshot_model_param() -> None:
|
|
llm = Moonshot(model="foo") # type: ignore[call-arg]
|
|
assert llm.model_name == "foo"
|
|
llm = Moonshot(model_name="bar") # type: ignore[call-arg]
|
|
assert llm.model_name == "bar"
|