-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: file transfer from reroils-data #1
Conversation
@@ -42,6 +42,7 @@ htmlcov/ | |||
.coverage | |||
.coverage.* | |||
.cache | |||
.pytest_cache |
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.
Not sure
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.
It was always on git status
recursive-include docs *.bat | ||
recursive-include docs *.py | ||
recursive-include docs *.rst | ||
recursive-include docs *.txt | ||
recursive-include docs Makefile | ||
recursive-include rero_mef *.gitkeep |
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.
Why?
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.
Comes from check-manifest -u
# ----------------------------------- Classes --------------------------------- | ||
|
||
# MrcIterator ---- | ||
class Transformation(object): |
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.
- BnfTransformation instead? If yes do the same for the others.
- Create a base class for the common methods.
self.logger = logger | ||
self.verbose = verbose | ||
self.json_dict = {} | ||
if transform: |
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.
Why? More generally we can have a class method such as: set_marc(marc) that do the transformation and a cached property for json
.
|
||
# ----------------------------------- Classes --------------------------------- | ||
# MrcIterator ---- | ||
class Transformation(object): |
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.
Can be a base class?
} | ||
|
||
|
||
def test_bnf_language_of_perso_2(): |
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.
bad name
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.
Comes from baa et pag
assert trans.json == {} | ||
|
||
|
||
def test_gnd_language_of_person_1(): |
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.
bad name
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.
Comes from baa et pag
|
||
|
||
def test_gnd_language_of_person_1(): | ||
"""Test language of person 377 $a (langue sur 3 caractères) ISO 639-2b""" |
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.
in french (copy/paste)
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.
Comes from baa et pag
} | ||
|
||
|
||
def test_gnd_language_of_person_2(): |
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.
bad name
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.
Comes from baa et pag
@@ -24,13 +24,13 @@ | |||
|
|||
"""Views tests.""" | |||
|
|||
from __future__ import absolute_import, print_function |
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.
Why?
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.
It's from the cookiecutter, You have to ask invenio.
Signed-off-by: Peter Weber <[email protected]> Co-authored-by: Bertrand Zuchuat <[email protected]>
59f6029
to
589b070
Compare
Signed-off-by: Peter Weber [email protected]
Co-authored-by: Bertrand Zuchuat [email protected]
Verify:
all nedded files from https://github.com/rero/reroils-data-legacy/tree/auth-master have been transferred
Test:
./scripts/bootstrap
./run_tests.ch