From f6b1944b32889c1e0076420320a0466e26d7b104 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:50:02 +0200 Subject: [PATCH 1/2] Fix integration tests --- .changeset/fix_integration_tests.md | 7 +++++++ end_to_end_tests/test_end_to_end.py | 2 +- pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .changeset/fix_integration_tests.md diff --git a/.changeset/fix_integration_tests.md b/.changeset/fix_integration_tests.md new file mode 100644 index 000000000..278e33464 --- /dev/null +++ b/.changeset/fix_integration_tests.md @@ -0,0 +1,7 @@ +--- +default: patch +--- + +# Fix integration tests + +#1266 by @Viicos diff --git a/end_to_end_tests/test_end_to_end.py b/end_to_end_tests/test_end_to_end.py index 5502297ff..3f523cc32 100644 --- a/end_to_end_tests/test_end_to_end.py +++ b/end_to_end_tests/test_end_to_end.py @@ -266,7 +266,7 @@ def test_generate_dir_already_exists(): def test_update_integration_tests(): - url = "https://raw.githubusercontent.com/openapi-generators/openapi-test-server/main/openapi.json" + url = "https://raw.githubusercontent.com/openapi-generators/openapi-test-server/v0.0.1/openapi.json" source_path = Path(__file__).parent.parent / "integration-tests" temp_dir = Path.cwd() / "test_update_integration_tests" shutil.rmtree(temp_dir, ignore_errors=True) diff --git a/pyproject.toml b/pyproject.toml index 24a58cdec..73a78a277 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,7 +129,7 @@ composite = ["test --cov openapi_python_client tests --cov-report=term-missing"] [tool.pdm.scripts.regen_integration] shell = """ -openapi-python-client generate --overwrite --url https://raw.githubusercontent.com/openapi-generators/openapi-test-server/main/openapi.json --config integration-tests/config.yaml --meta pdm --output-path integration-tests \ +openapi-python-client generate --overwrite --url https://raw.githubusercontent.com/openapi-generators/openapi-test-server/v0.0.1/openapi.json --config integration-tests/config.yaml --meta pdm --output-path integration-tests \ """ [build-system] From b687956e21030c9a4b735f7b5ab8c1ce866ae401 Mon Sep 17 00:00:00 2001 From: Dylan Anthony Date: Wed, 4 Jun 2025 09:26:15 -0600 Subject: [PATCH 2/2] remove changeset for non-user-facing change --- .changeset/fix_integration_tests.md | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .changeset/fix_integration_tests.md diff --git a/.changeset/fix_integration_tests.md b/.changeset/fix_integration_tests.md deleted file mode 100644 index 278e33464..000000000 --- a/.changeset/fix_integration_tests.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -default: patch ---- - -# Fix integration tests - -#1266 by @Viicos