Skip to content

Adding Developer Portal Scope to Tokens Tests - #1037

Open
cathal-bailey wants to merge 2 commits into
3scale-qe:mainfrom
cathal-bailey:updating-tokens-scope-tests
Open

Adding Developer Portal Scope to Tokens Tests#1037
cathal-bailey wants to merge 2 commits into
3scale-qe:mainfrom
cathal-bailey:updating-tokens-scope-tests

Conversation

@cathal-bailey

@cathal-bailey cathal-bailey commented May 19, 2026

Copy link
Copy Markdown
Collaborator
  • Adding Developer Portal scope test file: GET, POST, DELETE
  • Adding CMS tests for all scopes.
  • Updates to Management scope: DELETE test added, logic update and XFAIL removed for test_create_invoice_line_item.
  • DELETE added for Billing and Policy Registry scopes
  • Developer Portal token added to tokens.py

@cathal-bailey
cathal-bailey force-pushed the updating-tokens-scope-tests branch from eb7fc0a to 71ff44d Compare May 19, 2026 14:59
@cathal-bailey cathal-bailey changed the title Draft: adding test_developer_portal.py Adding Developer Portal Scope to Tokens Tests May 20, 2026
@cathal-bailey
cathal-bailey force-pushed the updating-tokens-scope-tests branch 3 times, most recently from 4de81b6 to 956b08d Compare May 21, 2026 12:42
@cathal-bailey
cathal-bailey marked this pull request as ready for review May 21, 2026 12:45
@cathal-bailey
cathal-bailey requested a review from a team as a code owner May 21, 2026 12:45

@mastastny mastastny left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstrings Don't Meet CONTRIBUTING.md Requirements

I noticed the docstrings in this PR describe expected results rather than manual reproduction steps, which doesn't quite align with CONTRIBUTING.md guidelines. I think it would be helpful to update them to include explicit steps for manual reproduction. Also, I feel the test_developer_portal.py module docstring could be more comprehensive

Code Duplication

I see that test_get_cms_templates, test_get_cms_sections, and test_get_cms_files are nearly identical, differing only in the expected status code. I think parametrizing these tests would reduce code duplication and improve maintainability. The same duplication is also in other files.

Comment thread testsuite/tests/ui/tokens/test_developer_portal.py Outdated
@cathal-bailey
cathal-bailey force-pushed the updating-tokens-scope-tests branch from 6b02b56 to dbc1a32 Compare August 11, 2026 14:21
Comment thread testsuite/tests/ui/tokens/test_management.py Outdated
Comment thread testsuite/tests/ui/tokens/test_management.py Outdated
Comment thread testsuite/tests/ui/tokens/test_management.py Outdated
@cathal-bailey
cathal-bailey force-pushed the updating-tokens-scope-tests branch from d08a7d2 to 5a952be Compare August 18, 2026 12:22
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.

2 participants