Skip to content

test: improve Python sample fixtures for endpoint tests#795

Open
Ananya-class wants to merge 1 commit into
imDarshanGK:mainfrom
Ananya-class:feat/improve-python-test-fixtures
Open

test: improve Python sample fixtures for endpoint tests#795
Ananya-class wants to merge 1 commit into
imDarshanGK:mainfrom
Ananya-class:feat/improve-python-test-fixtures

Conversation

@Ananya-class
Copy link
Copy Markdown

Description

Improved Python test fixtures used in endpoint tests by moving inline Python sample code into reusable fixture files.

Changes

  • Added tests/fixtures/sample_python_buggy.py
  • Added tests/fixtures/sample_python_clean.py
  • Added fixture loading helper in tests/test_endpoints.py
  • Replaced inline Python fixture strings with external fixture files
  • Preserved existing test behavior

Related Issue

Fixes #510

Type of change

  • Bug fix
  • New feature / enhancement
  • Documentation update
  • [] Test addition
  • Refactor

Checklist

  • I have read CONTRIBUTING.md
  • My branch is up to date with main
  • I have run pytest -v and all tests pass
  • I have not introduced duplicate issues or features
  • My PR title follows the format: feat/fix/docs/test: short description
  • I have added tests for new features (Level 2 and 3 issues)
  • No hardcoded secrets or API keys in my code
  • This PR is linked to a GSSoC 2026 issue

Screenshots (if frontend change)

N/A

Test evidence

Not run locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve test fixtures for sample Python file

1 participant