Skip to content

Updated addons api functions and fixed test_project_files.py #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

Ramyapatil712
Copy link
Collaborator

@Ramyapatil712 Ramyapatil712 commented Jul 18, 2025

Purpose

Update addons api functions to fix test_project_files.py tests which were failing after new GV release this year.

Summary of Changes

  1. Updated osf_api.py to fix get_user_addon and connect_provider_root_to_node functions
  2. Updated settings.py to include new addons api endpoints
  3. Updated test_project_files.py to fix the failing tests with new api functions

Reviewer's Actions

git fetch origin pull/287/head:feature/Fix_Project_Files_Tests

Add following items to .env file:
USER_ONE_STAGE1_PAT
USER_ONE_STAGE2_PAT
USER_ONE_STAGE3_PAT
USER_ONE_TEST_PAT

And provide the tokens created for each environment

Note: Create PAT for addon for the user1 on the staging environment and update .env with new token for that environment

Run this test using
tests/test_project_files.py::TestFilesPage -s -v

Testing Changes Moving Forward

Ticket

https://openscience.atlassian.net/browse/ENG-8300

@Ramyapatil712 Ramyapatil712 requested a review from felliott July 18, 2025 20:48
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.

1 participant