Skip to content

Commit 731b3bd

Browse files
committed
Added Python 3.13 to OpenAI tests
1 parent 9b281b1 commit 731b3bd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/test_notebook.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,40 +78,40 @@ def test_agentchat_function_call(save=False):
7878

7979

8080
@pytest.mark.skipif(
81-
skip or not sys.version.startswith("3.10"),
82-
reason="do not run if openai is not installed or py!=3.10",
81+
skip or not sys.version.startswith("3.13"),
82+
reason="do not run if openai is not installed or py!=3.13",
8383
)
8484
def test_agentchat_function_call_currency_calculator(save=False):
8585
run_notebook("agentchat_function_call_currency_calculator.ipynb", save=save)
8686

8787

8888
@pytest.mark.skipif(
89-
skip or not sys.version.startswith("3.11"),
90-
reason="do not run if openai is not installed or py!=3.11",
89+
skip or not sys.version.startswith("3.10"),
90+
reason="do not run if openai is not installed or py!=3.10",
9191
)
9292
def test_agentchat_function_call_async(save=False):
9393
run_notebook("agentchat_function_call_async.ipynb", save=save)
9494

9595

9696
@pytest.mark.skipif(
97-
skip or not sys.version.startswith("3.12"),
98-
reason="do not run if openai is not installed or py!=3.12",
97+
skip or not sys.version.startswith("3.11"),
98+
reason="do not run if openai is not installed or py!=3.11",
9999
)
100100
def _test_agentchat_MathChat(save=False):
101101
run_notebook("agentchat_MathChat.ipynb", save=save)
102102

103103

104104
@pytest.mark.skipif(
105-
skip or not sys.version.startswith("3.10"),
106-
reason="do not run if openai is not installed or py!=3.10",
105+
skip or not sys.version.startswith("3.12"),
106+
reason="do not run if openai is not installed or py!=3.12",
107107
)
108108
def _test_oai_chatgpt_gpt4(save=False):
109109
run_notebook("oai_chatgpt_gpt4.ipynb", save=save)
110110

111111

112112
@pytest.mark.skipif(
113-
skip or not sys.version.startswith("3.12"),
114-
reason="do not run if openai is not installed or py!=3.12",
113+
skip or not sys.version.startswith("3.13"),
114+
reason="do not run if openai is not installed or py!=3.13",
115115
)
116116
def test_agentchat_groupchat_finite_state_machine(save=False):
117117
run_notebook("agentchat_groupchat_finite_state_machine.ipynb", save=save)

0 commit comments

Comments
 (0)