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

SFR-2277: Renaming process files and refiling ingest processes #408

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

kylevillegas93
Copy link
Contributor

Description

  • Renames process files to snake case
  • Moves ingest processes under an ingest folder
  • Moves processes unit tests under same folder structure

Testing

make unit; python main.py -p NYPLProcess -e local -i complete -l 10

from processes.UofM import UofMProcess
from processes import UofMProcess
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this line be from processes.ingest.u_of_m import UofMProcess.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah because the init.py file in the processes folder imports the classes from the ingest file, this still works.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok. I was just wondering since the other tests for these processes have that code line structure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ya some of the errors classes are not imported in the processes module, so it needs to be the full path

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh appreciate the clarification

Copy link
Contributor

@mitri-slory mitri-slory left a comment

Choose a reason for hiding this comment

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

This PR looks good and I just have one typo change that should be addressed before this gets merged in.

@kylevillegas93 kylevillegas93 merged commit 5396107 into main Oct 22, 2024
1 check passed
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