-
Notifications
You must be signed in to change notification settings - Fork 62
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
[WIP] Update tests for manuscripts2 #71
[WIP] Update tests for manuscripts2 #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. But I would prefer somebody else having a look too.
Kindly don't merge this PR yet. I found a bug and I am almost done fixing it. |
ba55bc7
to
c425c4c
Compare
@jgbarah the tests now use actual data to check if the functions work properly or not. Kindly review? |
@acs @valeriocos can you please also review this? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I have just a minor question about the copyright, should be CHAOSS or Bitergia, like in other files (e.g., https://github.com/chaoss/grimoirelab-manuscripts/blob/master/manuscripts/report.py#L6) ?
Since @aswanipranjal is not working for Bitergia, but a GSoC intern working in CHAOSS, I think CHAOSS is more appropriate... |
@aswanipranjal could you please rebase, and I will merge it? |
- Using elasticsearch to create indices and query them - add expected dummy data in tests/data folder - update each test to query ES and compare results with dummy data - update .travis.yml file for integrated tests
- Now calling get_aggs as a method of Query class and not as an independent function
9bd77b5
to
ef9fdf9
Compare
Done, @jgbarah. |
@jgbarah can we please merge this? It'll be easier to re-name the files then. |
Thank you @jgbarah!! |
This PR updates the tests by adding the functionality to query elasticsearch and compare the responses with predefined results.