Skip to content

Commit

Permalink
Added Python 3.13 to OpenAI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marklysze committed Nov 21, 2024
1 parent 9b281b1 commit 731b3bd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/test_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,40 +78,40 @@ def test_agentchat_function_call(save=False):


@pytest.mark.skipif(
skip or not sys.version.startswith("3.10"),
reason="do not run if openai is not installed or py!=3.10",
skip or not sys.version.startswith("3.13"),
reason="do not run if openai is not installed or py!=3.13",
)
def test_agentchat_function_call_currency_calculator(save=False):
run_notebook("agentchat_function_call_currency_calculator.ipynb", save=save)


@pytest.mark.skipif(
skip or not sys.version.startswith("3.11"),
reason="do not run if openai is not installed or py!=3.11",
skip or not sys.version.startswith("3.10"),
reason="do not run if openai is not installed or py!=3.10",
)
def test_agentchat_function_call_async(save=False):
run_notebook("agentchat_function_call_async.ipynb", save=save)


@pytest.mark.skipif(
skip or not sys.version.startswith("3.12"),
reason="do not run if openai is not installed or py!=3.12",
skip or not sys.version.startswith("3.11"),
reason="do not run if openai is not installed or py!=3.11",
)
def _test_agentchat_MathChat(save=False):
run_notebook("agentchat_MathChat.ipynb", save=save)


@pytest.mark.skipif(
skip or not sys.version.startswith("3.10"),
reason="do not run if openai is not installed or py!=3.10",
skip or not sys.version.startswith("3.12"),
reason="do not run if openai is not installed or py!=3.12",
)
def _test_oai_chatgpt_gpt4(save=False):
run_notebook("oai_chatgpt_gpt4.ipynb", save=save)


@pytest.mark.skipif(
skip or not sys.version.startswith("3.12"),
reason="do not run if openai is not installed or py!=3.12",
skip or not sys.version.startswith("3.13"),
reason="do not run if openai is not installed or py!=3.13",
)
def test_agentchat_groupchat_finite_state_machine(save=False):
run_notebook("agentchat_groupchat_finite_state_machine.ipynb", save=save)
Expand Down

0 comments on commit 731b3bd

Please sign in to comment.