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

tests: add tests is_citeable function #118

Merged
merged 1 commit into from
Mar 9, 2017

Conversation

rikirenz
Copy link
Contributor

@rikirenz rikirenz commented Mar 8, 2017

  • Moves is_citeable function outside form the class LiteratureBuilder
  • Adds unit tests for the is_citeable function

Signed-off-by: Riccardo Candido riccardo.candido@gmail.com

@david-caro david-caro added the WIP label Mar 8, 2017
@rikirenz rikirenz force-pushed the add-test-is-citeable branch 3 times, most recently from 8404b28 to 2fc9ac7 Compare March 8, 2017 18:00
@rikirenz rikirenz self-assigned this Mar 8, 2017
@rikirenz rikirenz added Need: Review and removed WIP labels Mar 8, 2017
@rikirenz rikirenz requested a review from michamos March 9, 2017 09:11
@rikirenz
Copy link
Contributor Author

rikirenz commented Mar 9, 2017

Closes inspirehep/inspire-next#1980

Copy link
Contributor

@michamos michamos left a comment

Choose a reason for hiding this comment

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

OK, except for the year thing.
There is the bigger issue #103, that might be beyond the scope of this PR.

def _item_has_pub_info(item):
return all(
key in item for key in (
'year', 'journal_title', 'journal_volume'
Copy link
Contributor

Choose a reason for hiding this comment

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

Just talked with @annetteholtkamp and year is not needed. Sorry about that.

* Moves is_citeable function outside LiteratureBuilder
* Adds unit tests for the is_citeable function
* Fix the logic of the is_citeable function. Now it is not
considering the year anymore

Signed-off-by: Riccardo Candido <riccardo.candido@gmail.com>
@rikirenz rikirenz force-pushed the add-test-is-citeable branch from 2fc9ac7 to a3ab3dd Compare March 9, 2017 14:11
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.

3 participants