Skip to content
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

refactor: test_help_all function #213

Merged
merged 2 commits into from
Dec 23, 2022

Conversation

shivaylamba
Copy link
Contributor

Signed-off-by: Shivay Lamba shivaylamba@gmail.com

Pull Request Template

Description

I refactored the test_help_all test case and added a separate test case called test_help_arg
I have also run the pytest successfully for the new test case

Fixes #212

Type of change

Please delete options that are not relevant.

  • Refactor test case

How Has This Been Tested?

Pytest

image

Additional Context (Please include any Screenshots/gifs if relevant)

...

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have tagged the reviewers in a comment below incase my pull request is ready for a review
  • I have signed the commit message to agree to Developer Certificate of Origin (DCO) (to certify that you wrote or otherwise have the right to submit your contribution to the project.) by adding "--signoff" to my git commit command.

Signed-off-by: Shivay Lamba <shivaylamba@gmail.com>
@shivaylamba
Copy link
Contributor Author

@HarshCasper can you review this pull request

Copy link
Member

@HarshCasper HarshCasper left a comment

Choose a reason for hiding this comment

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

Hi @shivaylamba 👋

Thanks for your PR — Can you please fix the lint issue as well?

@@ -30,6 +30,8 @@ def test_help_all(self, base_endpoint):
help_all_endpoint = base_endpoint + "help/all"
help_all_response = requests.get(help_all_endpoint)
assert help_all_response.status_code == 200

def test_help_arg(self, base_endpoint):
"This test is to check the help endpoint with random i.e arg argument"
Copy link
Member

Choose a reason for hiding this comment

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

Can you please use """Doctext format""" instead of a single quote?

Signed-off-by: Shivay Lamba <shivaylamba@gmail.com>
@HarshCasper HarshCasper merged commit 355d902 into moja-global:master Dec 23, 2022
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.

Refactor test_help_all test-case for FLINT.Example REST API
2 participants