From c8587bb31da05ef63303d49fba09a369e004ed39 Mon Sep 17 00:00:00 2001 From: Jeremy Audet Date: Tue, 16 Jul 2024 11:52:56 -0400 Subject: [PATCH] Run unittest tests with unittest (#19121) The unit tests in the following directories are written to unittest, not pytest: * `samples/client/echo_api/python/` * `samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/` If pytest is told to execute these tests, it will log warnings about being unable to collect certain tests. --- .github/workflows/samples-python-client-echo-api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/samples-python-client-echo-api.yaml b/.github/workflows/samples-python-client-echo-api.yaml index 1446a813ba3..407bcea1f77 100644 --- a/.github/workflows/samples-python-client-echo-api.yaml +++ b/.github/workflows/samples-python-client-echo-api.yaml @@ -42,7 +42,7 @@ jobs: - name: Test working-directory: ${{ matrix.sample }} - run: python -m pytest + run: python -m unittest discover - name: mypy working-directory: ${{ matrix.sample }}