pytest.mark.skipif
to make them run in only when openai
package is installed. If additional dependency for this test is required, install the dependency in the corresponding python version in core-llm-test.yml.
Make sure all tests pass, this is required for core-test.yml checks to pass
test
folder using the following command:
autogen.agentchat.contrib
module may be skipped automatically if the
required dependencies are not installed. Please consult the documentation for
each contrib module to see what dependencies are required.
See here for how to run notebook tests.
-m
: Used to select or deselect specific groups of tests marked with pytest markers, such as tests for LLM services like OpenAI, Gemini etc. For example, you can mark tests with @pytest.mark.openai
and then use -m openai
to run only those tests.-m "not docker"
: Skips tests that explicitly require Docker.-m "not redis"
: Skips tests that require a Redis server.