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

add tests to cover running simple query #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mzuber-r7
Copy link
Collaborator

  • tests to cover a simple query added
  • pytest.ini + pytest-pythonpath added
    @seamusc

@mzuber-r7 mzuber-r7 requested a review from seamusc February 6, 2019 20:45
Copy link
Collaborator

@ashulga-r7 ashulga-r7 left a comment

Choose a reason for hiding this comment

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

The LogSearch.search accepts 8 params. How about adding test cases for valid/invalid values of the params?

text='ok'
)
ls = LogSearch(api_key='dummy_key')
m.get("https://eu.rest.logs.insight.rapid7.com/management/organizations/apikeys",
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about extracting global string const for base URL?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can see that you did that, so I'm gonna copy yours

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@ashulga-r7 ashulga-r7 left a comment

Choose a reason for hiding this comment

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

Actually there are some issues with build for python 3.x.

@mzuber-r7
Copy link
Collaborator Author

yeah...I see

@mzuber-r7 mzuber-r7 force-pushed the add_tests_to_cover_simple_query branch from b637331 to 312d776 Compare February 7, 2019 12:10
@mzuber-r7 mzuber-r7 self-assigned this Feb 7, 2019
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