pr-agent/tests/unittest
Vishwanath Martur 4688b20284 Support pull requests in personal spaces in Bitbucket Server
Related to #1148

Update `_parse_pr_url` method in `pr_agent/git_providers/bitbucket_server_provider.py` to handle URLs with `/users/`.

* Add logic to check for both `/projects/` and `/users/` in the URL path and process them accordingly.
* Modify the method to raise a `ValueError` if neither `/projects/` nor `/users/` is found in the URL.
* Update the `workspace_slug` to include a `~` prefix if the URL contains `/users/`.

Add test case for URL with `/users/` in `tests/unittest/test_bitbucket_provider.py`.

* Ensure the new test case verifies the correct parsing of URLs with `/users/`.
2024-12-22 00:42:11 +05:30
..
test_azure_devops_parsing.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_bitbucket_provider.py Support pull requests in personal spaces in Bitbucket Server 2024-12-22 00:42:11 +05:30
test_clip_tokens.py Add large_patch_policy configuration and implement patch clipping logic 2024-05-29 14:00:04 +03:00
test_codecommit_client.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_codecommit_provider.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_convert_to_markdown.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_delete_hunks.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_extend_patch.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_file_filter.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_find_line_number_of_relevant_line_in_file.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_fix_output.py add tests and update README.md 2023-07-30 21:54:07 +03:00
test_github_action_output.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_handle_patch_deletions.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_language_handler.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_load_yaml.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_parse_code_suggestion.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00
test_try_fix_yaml.py Format files by pre-commit run -a 2024-10-30 10:00:36 +09:00